We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 788e98f + e7b00c5 commit 15af30eCopy full SHA for 15af30e
1 file changed
diffcore-break.c
@@ -68,6 +68,9 @@ static int should_break(struct diff_filespec *src,
68
if (max_size < MINIMUM_BREAK_SIZE)
69
return 0; /* we do not break too small filepair */
70
71
+ if (!src->size)
72
+ return 0; /* we do not let empty files get renamed */
73
+
74
if (diffcore_count_changes(src, dst,
75
&src->cnt_data, &dst->cnt_data,
76
0,
0 commit comments