Skip to content

Commit 4dd2f869 Overloads `tap sdk gitversion --log`

Commit 4dd2f869, which introduces the --log common CLI option to control the filename/location of the session log, overloads the tap sdk gitversion --log n command, which prints the git log for the last n commits.

Now, when running:

tap sdk gitversion --log 5

the CLI saves the session log to a file named 5 and prints on the console the git log for the last 5 commits.

In addition,

$ tap sdk gitversion -h
Usage: gitversion [-h] [-v] [-c] [-q] [--log <arg>] [--replace <arg>] 
[--fields <arg>] [--dir <arg>] [<ref>]
   -h, --help      Write help information.
   -v, --verbose   Show verbose/debug-level log messages.
   -c, --color     Color messages according to their severity.
   -q, --quiet     Quiet console logging.
   --log           Print the git log for the last <arg> commits including their semantic version number.
   --replace       Replace all occurrences of $(GitVersion) in the specified file
                   with the calculated semantic version number. It cannot be used with --log.
   --fields        Number of version fields to print/replace. The fields are: major, minor, patch,
                   pre-release, and build metadata. E.g., --fields=2 results in a version number
                   containing only the major and minor field. The default is 5 (all fields).
   --dir           Directory containing the git repository to calculate the version number from.

does not include a line for the ghost

--log              Specify log file location. Default is ./SessionLogs.

option.

The quickest fix is probably to rename tap sdk gitversion --log n to tap sdk gitversion --gitlog n.

Edited by Dave Heintz