Skip to content

Commit 428c40d

Browse files
wonda-tea-coffeegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dbecc61 commit 428c40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-show-branch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Shows the commit ancestry graph starting from the commits named
2222
with <rev>s or <glob>s (or all refs under refs/heads
2323
and/or refs/tags) semi-visually.
2424

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.
2626

2727
It uses `showbranch.default` multi-valued configuration items if
2828
no <rev> or <glob> is given on the command line.

0 commit comments

Comments
 (0)