Commits

Anonymous committed cfd8aef Merge

Merge branch 'fixes'

  • Participants
  • Parent commits 00d8bbd, fbaf834

Comments (0)

Files changed (2)

 	shift
 done
 git-ls-files -z "${git_flags[@]}" "$@" |
-	xargs -0 grep "${flags[@]}" "$pattern"
+	xargs -0 grep "${flags[@]}" -e "$pattern"

File show-branch.c

 				nth++;
 				if (p->object.util)
 					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);
 				i++;
 				name_first_parent_chain(p);