author | Junio C Hamano <gitster@pobox.com> | |
Thu, 26 Mar 2009 07:26:47 +0000 (00:26 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 26 Mar 2009 07:26:47 +0000 (00:26 -0700) |
* bc/maint-1.6.1-branch-deleted-was:
git-branch: display "was sha1" on branch deletion rather than just "sha1"
Conflicts:
builtin-branch.c
git-branch: display "was sha1" on branch deletion rather than just "sha1"
Conflicts:
builtin-branch.c
1 | 2 | |||
---|---|---|---|---|
builtin-branch.c | patch | | diff1 | | diff2 | | blob | history |
t/t3200-branch.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin-branch.c
index 14d4b917e5bb929f40efd3fc5e010cec5d3507de,23b6949fec30e8276d0ef3d34e0aaee10eb49165..07a440eebacc1aa4e944874704bedfed7efb00e8
--- 1/builtin-branch.c
--- 2/builtin-branch.c
+++ b/builtin-branch.c
ret = 1;
} else {
struct strbuf buf = STRBUF_INIT;
- printf("Deleted %sbranch %s (%s).\n", remote,
- printf("Deleted %sbranch %s (was %s).\n", remote, argv[i],
- find_unique_abbrev(sha1, DEFAULT_ABBREV));
- strbuf_addf(&buf, "branch.%s", argv[i]);
++ printf("Deleted %sbranch %s (was %s).\n", remote,
+ bname.buf,
+ find_unique_abbrev(sha1, DEFAULT_ABBREV));
+ strbuf_addf(&buf, "branch.%s", bname.buf);
if (git_config_rename_section(buf.buf, NULL) < 0)
warning("Update of config-file failed");
strbuf_release(&buf);
diff --cc t/t3200-branch.sh
Simple merge