summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 252fdb8fa..a5b5e6198 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -445,7 +445,10 @@ static char pick_suffix(int mode)
{
if (S_ISDIR(mode))
return '/';
- else if (mode & S_IXUSR)
+ else if (mode & 0100)
+ /* modes in git are not very flexible, so if this bit is set,
+ * we must be dealwith with a 100755 type of file.
+ */
return '*';
else
return ' ';