projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] git-diff-cache: handle pathspec beginning with a dash
[git.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index
2762905
..
046d9a3
100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-786,8
+786,8
@@
static void diff_flush_patch(struct diff_filepair *p)
case 'R':
sprintf(msg_,
"similarity index %d%%\n"
- "rename
old
%s\n"
- "rename
new
%s",
+ "rename
from
%s\n"
+ "rename
to
%s",
(int)(0.5 + p->score * 100.0/MAX_SCORE),
p->one->path, p->two->path);
msg = msg_;