summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea02eef)
raw | patch | inline | side by side (parent: ea02eef)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Mar 2009 07:13:03 +0000 (00:13 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Mar 2009 07:13:03 +0000 (00:13 -0700) |
setup_revisions() while getting the command line arguments parses the
given commits from the command line, which means their direct parents will
not be rewritten by the custom graft file.
Call read_ancestry() early to work around this issue.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
given commits from the command line, which means their direct parents will
not be rewritten by the custom graft file.
Call read_ancestry() early to work around this issue.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c | patch | blob | history |
diff --git a/builtin-blame.c b/builtin-blame.c
index 4ea343189fdad035318e94ce0c6c2ec16b62ba7f..0c241a9ec803a95ff85cf98f2714c74a6503b976 100644 (file)
--- a/builtin-blame.c
+++ b/builtin-blame.c
parse_done:
argc = parse_options_end(&ctx);
+ if (revs_file && read_ancestry(revs_file))
+ die("reading graft file %s failed: %s",
+ revs_file, strerror(errno));
+
if (DIFF_OPT_TST(&revs.diffopt, FIND_COPIES_HARDER))
opt |= (PICKAXE_BLAME_COPY | PICKAXE_BLAME_MOVE |
PICKAXE_BLAME_COPY_HARDER);
sb.ent = ent;
sb.path = path;
- if (revs_file && read_ancestry(revs_file))
- die("reading graft file %s failed: %s",
- revs_file, strerror(errno));
-
read_mailmap(&mailmap, ".mailmap", NULL);
if (!incremental)