diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-07 20:33:51 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-08 07:46:20 -0800 |
commit | 6d0011947b0675de21e4010dedb14a94cd7f7873 (patch) | |
tree | f5e44dc4d24f10ae07fe775acf0579208248c7c8 /file.c | |
parent | 5bba84e57f660f8ceddb9d45526f80b0f28b9194 (diff) | |
download | subsurface-6d0011947b0675de21e4010dedb14a94cd7f7873.tar.gz |
Use symbolic names for the git file types
Instead of hardcoding the regular file mode (0100644 is the traditional
Unix S_IFREG file mode with -rw-r--r-- protections), use
GIT_FILEMODE_BLOB (and GIT_FILEMODE_TREE for 040000 - S_IFDIR).
The numbers were historically indeed the regular S_IFREG/S_IFDIR values,
but since those aren't portable, git ended up defining their own.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
0 files changed, 0 insertions, 0 deletions