File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -647,13 +647,6 @@ diff_trace_origin(struct view *view, struct line *line)
647
647
struct blame_header header ;
648
648
struct blame_commit commit ;
649
649
650
- if (!commit_line ) {
651
- report ("Failed to read the commit ID" );
652
- return REQ_NONE ;
653
- }
654
-
655
- string_copy_rev_from_commit_line (id , box_text (commit_line ));
656
-
657
650
if (!diff || !chunk || chunk == line || diff < commit_line ) {
658
651
report ("The line to trace must be inside a diff chunk" );
659
652
return REQ_NONE ;
@@ -695,6 +688,11 @@ diff_trace_origin(struct view *view, struct line *line)
695
688
}
696
689
}
697
690
691
+ if (commit_line )
692
+ string_copy_rev_from_commit_line (id , box_text (commit_line ));
693
+ else
694
+ string_copy (id , view -> vid );
695
+
698
696
if (chunk_marker == '-' )
699
697
string_format (ref , "%s^" , id );
700
698
else
You can’t perform that action at this time.
0 commit comments