summaryrefslogtreecommitdiff
path: root/src/diff_print.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-09-05 11:20:12 -0700
committerRussell Belfer <rb@github.com>2013-09-05 11:20:12 -0700
commitf240acce865ec14df0d517d5000316a933e7ffed (patch)
tree33bb2efbb07ac32178ce242899ecaa8c6842c308 /src/diff_print.c
parent27061b151a7e0225186365ee0b5ca802d68782a9 (diff)
downloadlibgit2-f240acce865ec14df0d517d5000316a933e7ffed.tar.gz
Add more file mode permissions macros
This adds some more macros for some standard operations on file modes, particularly related to permissions, and then updates a number of places around the code base to use the new macros.
Diffstat (limited to 'src/diff_print.c')
-rw-r--r--src/diff_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff_print.c b/src/diff_print.c
index 4ddd72443..96937d84d 100644
--- a/src/diff_print.c
+++ b/src/diff_print.c
@@ -7,7 +7,7 @@
#include "common.h"
#include "diff.h"
#include "diff_patch.h"
-#include "buffer.h"
+#include "fileops.h"
typedef struct {
git_diff_list *diff;
@@ -46,7 +46,7 @@ static char diff_pick_suffix(int mode)
{
if (S_ISDIR(mode))
return '/';
- else if (mode & 0100) /* -V536 */
+ else if (GIT_PERMS_EXECUTABLE(mode)) /* -V536 */
/* in git, modes are very regular, so we must have 0100755 mode */
return '*';
else