X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=show-branch.c;h=511fd3b656ec0f66492994c21bb024a52f482a78;hb=72fdfb50f721460e4cdff16fbe9c72d4ce6c668c;hp=7a0dcc649edaf6a823e15f60d04c6ce67348dc42;hpb=0620db36f85788193de2102884ff8dd94222660f;p=git.git diff --git a/show-branch.c b/show-branch.c index 7a0dcc64..511fd3b6 100644 --- a/show-branch.c +++ b/show-branch.c @@ -258,8 +258,8 @@ static void show_one_commit(struct commit *commit, int no_name) char pretty[256], *cp; struct commit_name *name = commit->object.util; if (commit->object.parsed) - pretty_print_commit(CMIT_FMT_ONELINE, commit->buffer, ~0, - pretty, sizeof(pretty)); + pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0, + pretty, sizeof(pretty), 0); else strcpy(pretty, "(unavailable)"); if (!strncmp(pretty, "[PATCH] ", 8)) @@ -548,8 +548,8 @@ int main(int ac, char **av) int with_current_branch = 0; int head_at = -1; - git_config(git_show_branch_config); setup_git_directory(); + git_config(git_show_branch_config); /* If nothing is specified, try the default first */ if (ac == 1 && default_num) {