Skip to content

Commit

Permalink
doc: fix the max number of branches shown by "show-branch"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wonda-tea-coffee authored and gitster committed Jul 8, 2024
1 parent dbecc61 commit 428c40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/git-show-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Shows the commit ancestry graph starting from the commits named
with <rev>s or <glob>s (or all refs under refs/heads
and/or refs/tags) semi-visually.

It cannot show more than 29 branches and commits at a time.
It cannot show more than 26 branches and commits at a time.

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

0 comments on commit 428c40d

Please sign in to comment.