diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-08-17 21:15:32 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-08-21 23:15:08 +0200 |
commit | d854d59e317e1ace817f5845ec7abfba38bece69 (patch) | |
tree | fc9445daba8290647c59bf1e9927c8ea3a40d1f6 | |
parent | b2be351aaddc6ba0b3a0f2cf4e09536a3b27e598 (diff) | |
download | libgit2-d854d59e317e1ace817f5845ec7abfba38bece69.tar.gz |
filemode: introduce enum to ease use of attributes
-rw-r--r-- | include/git2/types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/types.h b/include/git2/types.h index acd5a73bc..d3a905372 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -175,6 +175,16 @@ typedef enum { GIT_RESET_MIXED = 2, } git_reset_type; +/** Valid modes for index and tree entries. */ +typedef enum { + GIT_FILEMODE_NEW = 0000000, + GIT_FILEMODE_TREE = 0040000, + GIT_FILEMODE_BLOB = 0100644, + GIT_FILEMODE_BLOB_EXECUTABLE = 0100755, + GIT_FILEMODE_LINK = 0120000, + GIT_FILEMODE_COMMIT = 0160000, +} git_filemode_t; + typedef struct git_refspec git_refspec; typedef struct git_remote git_remote; |