/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix rev-list when showing objects involving submodules
[git/git.git]
/
tree-walk.h
diff --git
a/tree-walk.h
b/tree-walk.h
index
db0fbdc
..
903a7b0
100644
(file)
--- a/
tree-walk.h
+++ b/
tree-walk.h
@@
-7,6
+7,13
@@
struct name_entry {
unsigned int mode;
};
+static inline enum object_type object_type(unsigned int mode)
+{
+ return S_ISDIR(mode) ? OBJ_TREE :
+ S_ISGITLINK(mode) ? OBJ_COMMIT :
+ OBJ_BLOB;
+}
+
struct tree_desc {
const void *buffer;
struct name_entry entry;