doc: fix the max number of branches shown by "show-branch"
The number to be displayed is calculated by the following defined in object.h: #define REV_SHIFT 2 #define MAX_REVS (FLAG_BITS - REV_SHIFT) FLAG_BITS is currently 28, so 26 is the correct number. Signed-off-by: Rikita Ishikawa <lagrange.resolvent@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Rikita Ishikawa committed
Jul 8, 2024 at 13:07 UTC
428c40da612454311469e9cf24a2105b944777a6
1 file changed
+1
-1
Documentation/git-show-branch.txt
+1
-1
@@ -22,7 +22,7 @@ Shows the commit ancestry graph starting from the commits named
22
with <rev>s or <glob>s (or all refs under refs/heads
23
and/or refs/tags) semi-visually.
24
25
-It cannot show more than 29 branches and commits at a time.
25
+It cannot show more than 26 branches and commits at a time.
26
27
It uses `showbranch.default` multi-valued configuration items if
28
no <rev> or <glob> is given on the command line.