projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH 3/3] Rename git-diff-tree-helper to git-diff-helper (part 2).
[git.git]
/
diff-files.c
diff --git
a/diff-files.c
b/diff-files.c
index
c51edc3
..
28f1b13
100644
(file)
--- a/
diff-files.c
+++ b/
diff-files.c
@@
-126,7
+126,8
@@
int main(int argc, char **argv)
continue;
oldmode = ntohl(ce->ce_mode);
- mode = S_IFREG | ce_permissions(st.st_mode);
+ mode = (S_ISLNK(st.st_mode) ? S_IFLNK :
+ S_IFREG | ce_permissions(st.st_mode));
show_modified(oldmode, mode, ce->sha1, null_sha1,
ce->name);