Flags used with the git describe command to modify its behavior.
git describe
These control how Git generates the description of a commit.
--tags
--all
--long
--dirty
--exact-match
--always
--first-parent
--dirty=<mark>
--abbrev=<n>
--match=<pattern>
--candidates=<n>
Git.describe
Flags used with the
git describe
command to modify its behavior.These control how Git generates the description of a commit.
--tags
: Use any tag (including lightweight tags).--all
: Use any ref (tags, branches, etc.).--long
: Always output long format (tag + number of commits + hash).--dirty
: Mark the working tree as dirty if it has local changes.--exact-match
: Only output the tag if the commit matches exactly.--always
: Fallback to abbreviated commit hash if no tag is found.--first-parent
: Follow only the first parent upon traversal.--dirty=<mark>
: Use a custom suffix instead of "-dirty".--abbrev=<n>
: Set the hash abbreviation length.--match=<pattern>
: Only consider tags matching the given glob pattern.--candidates=<n>
: Limit the number of candidate tags considered.