X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=builtin-show-branch.c;h=cf9c071a53c09476acaecb6bcbf95d4ff76dca79;hb=885a86abe2e9f7b96a4e2012183c6751635840aa;hp=3af24e767baae390484d2c5acec9aa25e09d9a91;hpb=f2054be4c4816d8c363dc867f462bc0af9031c02;p=git.git diff --git a/builtin-show-branch.c b/builtin-show-branch.c index 3af24e76..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) { @@ -260,7 +260,7 @@ static void show_one_commit(struct commit *commit, int no_name) struct commit_name *name = commit->object.util; if (commit->object.parsed) pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0, - pretty, sizeof(pretty), 0); + pretty, sizeof(pretty), 0, NULL, NULL); else strcpy(pretty, "(unavailable)"); if (!strncmp(pretty, "[PATCH] ", 8))