Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add contrib/rerere-train script
[gitweb.git]
/
builtin-diff.c
diff --git
a/builtin-diff.c
b/builtin-diff.c
index d5fe775fc135c0905cabec6731104009ca3bfef3..35da366f46009eab8eab693f7f56403d91d5d677 100644
(file)
--- a/
builtin-diff.c
+++ b/
builtin-diff.c
@@
-74,6
+74,8
@@
static int builtin_diff_b_f(struct rev_info *revs,
if (!(S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)))
die("'%s': not a regular file or symlink", path);
+ diff_set_mnemonic_prefix(&revs->diffopt, "o/", "w/");
+
if (blob[0].mode == S_IFINVALID)
blob[0].mode = canon_mode(st.st_mode);