]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pretty: document multiple %(describe) being inconsistent
authorRené Scharfe <l.s.r@web.de>
Sun, 28 Feb 2021 11:22:34 +0000 (12:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Mar 2021 17:50:27 +0000 (09:50 -0800)
Each %(describe) placeholder is expanded using a separate git describe
call.  Their outputs depend on the tags present at the time, so there's
no consistency guarantee.  Document that fact.

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt

index 231010e6ef261e60aa41e3a5076d03aedc0f074f..45133066e412201020a37eaae275857acb412204 100644 (file)
@@ -212,7 +212,9 @@ The placeholders are:
                          linkgit:git-describe[1]; empty string for
                          undescribable commits.  The `describe` string
                          may be followed by a colon and zero or more
-                         comma-separated options.
+                         comma-separated options.  Descriptions can be
+                         inconsistent when tags are added or removed at
+                         the same time.
 +
 ** 'match=<pattern>': Only consider tags matching the given
    `glob(7)` pattern, excluding the "refs/tags/" prefix.