Skip to content

Commit 5ab2f7b

Browse files
committed
Merge branch 'jc/maint-1.6.0-blame-s' into maint
* jc/maint-1.6.0-blame-s: blame: read custom grafts given by -S before calling setup_revisions() Conflicts: builtin-blame.c
2 parents cb365a7 + aa9ea77 commit 5ab2f7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin-blame.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,10 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
22632263
parse_done:
22642264
argc = parse_options_end(&ctx);
22652265

2266+
if (revs_file && read_ancestry(revs_file))
2267+
die("reading graft file %s failed: %s",
2268+
revs_file, strerror(errno));
2269+
22662270
if (cmd_is_annotate)
22672271
output_option |= OUTPUT_ANNOTATE_COMPAT;
22682272

@@ -2404,10 +2408,6 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
24042408
sb.ent = ent;
24052409
sb.path = path;
24062410

2407-
if (revs_file && read_ancestry(revs_file))
2408-
die("reading graft file %s failed: %s",
2409-
revs_file, strerror(errno));
2410-
24112411
read_mailmap(&mailmap, NULL);
24122412

24132413
if (!incremental)

0 commit comments

Comments
 (0)