Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git p4: Use git diff-tree instead of format-patch
[gitweb.git]
/
diffcore-break.c
diff --git
a/diffcore-break.c
b/diffcore-break.c
index 44f8678d22ea466b0867591429bbcc3285cdaf91..1d9e530a84758e34d616690684c4842cd1af4cfc 100644
(file)
--- a/
diffcore-break.c
+++ b/
diffcore-break.c
@@
-68,6
+68,9
@@
static int should_break(struct diff_filespec *src,
if (max_size < MINIMUM_BREAK_SIZE)
return 0; /* we do not break too small filepair */
+ if (!src->size)
+ return 0; /* we do not let empty files get renamed */
+
if (diffcore_count_changes(src, dst,
&src->cnt_data, &dst->cnt_data,
0,