Browse Source

Merge branch 'fixes'

maint
Junio C Hamano 19 years ago
parent
commit
dbc3743868
  1. 2
      git-grep.sh
  2. 15
      show-branch.c

2
git-grep.sh

@ -40,4 +40,4 @@ while : ; do
shift shift
done done
git-ls-files -z "${git_flags[@]}" "$@" | git-ls-files -z "${git_flags[@]}" "$@" |
xargs -0 grep "${flags[@]}" "$pattern" xargs -0 grep "${flags[@]}" -e "$pattern"

15
show-branch.c

@ -138,7 +138,20 @@ static void name_commits(struct commit_list *list,
nth++; nth++;
if (p->object.util) if (p->object.util)
continue; continue;
sprintf(newname, "%s^%d", n->head_name, nth); switch (n->generation) {
case 0:
sprintf(newname, "%s^%d",
n->head_name, nth);
break;
case 1:
sprintf(newname, "%s^^%d",
n->head_name, nth);
break;
default:
sprintf(newname, "%s~%d^%d",
n->head_name, n->generation,
nth);
}
name_commit(p, strdup(newname), 0); name_commit(p, strdup(newname), 0);
i++; i++;
name_first_parent_chain(p); name_first_parent_chain(p);

Loading…
Cancel
Save