diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-06-06 18:33:38 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-06-06 18:33:38 -0700 |
| commit | 1097dacd7d796e0c56492b717baf153ba88dff65 (patch) | |
| tree | 75e58cc0e0e18fac2142a70d13c76156c33b1e59 /src/fileops.h | |
| parent | 9b1692ebfcc4b91e8171d0614530133ac2b032e1 (diff) | |
| parent | ff9a4c130d09629af86a90ac64a89198faf4ffd8 (diff) | |
| download | libgit2-1097dacd7d796e0c56492b717baf153ba88dff65.tar.gz | |
Merge pull request #240 from Romain-Geissler/tree-object-type
Tree: Added a function that returns the type of a tree entry.
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h index 4a86e1c63..c114508db 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -20,6 +20,9 @@ #define GIT_PLATFORM_PATH_SEP '/' #endif +#define S_IFGITLINK 0160000 +#define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK) + #ifdef GIT_WIN32 GIT_INLINE(int) link(const char *GIT_UNUSED(old), const char *GIT_UNUSED(new)) { |
