Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Update tutorial.
[gitweb.git]
/
tree.c
diff --git
a/tree.c
b/tree.c
index dabc2e7a2c6f51255914d49f854d82e42ddcab77..8f490b8984bf95a13720ffb2d9b23a2dd8c03394 100644
(file)
--- a/
tree.c
+++ b/
tree.c
@@
-167,6
+167,7
@@
int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size)
entry->directory = S_ISDIR(mode) != 0;
entry->executable = (mode & S_IXUSR) != 0;
entry->symlink = S_ISLNK(mode) != 0;
+ entry->zeropad = *(char *)bufptr == '0';
entry->mode = mode;
entry->next = NULL;