X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=builtin-show-branch.c;h=cf9c071a53c09476acaecb6bcbf95d4ff76dca79;hb=885a86abe2e9f7b96a4e2012183c6751635840aa;hp=2895140915cb603e2c5f971d0356f2e48106bc0e;hpb=210a0be504829bad5a2821488d3c25cc406fed4a;p=git.git diff --git a/builtin-show-branch.c b/builtin-show-branch.c index 28951409..cf9c071a 100644 --- a/builtin-show-branch.c +++ b/builtin-show-branch.c @@ -15,7 +15,7 @@ static const char **default_arg = NULL; #define UNINTERESTING 01 #define REV_SHIFT 2 -#define MAX_REVS 29 /* should not exceed bits_per_int - REV_SHIFT */ +#define MAX_REVS (FLAG_BITS - REV_SHIFT) /* should not exceed bits_per_int - REV_SHIFT */ static struct commit *interesting(struct commit_list *list) {