Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rebase -m: do not trigger pre-commit verification
[gitweb.git]
/
tree-walk.h
diff --git
a/tree-walk.h
b/tree-walk.h
index 903a7b0f483fec5cbb6c6b372ab49cc28b655e75..db0fbdc701f1ef63cdc1a8b7d5c5e72322f91426 100644
(file)
--- a/
tree-walk.h
+++ b/
tree-walk.h
@@
-7,13
+7,6
@@
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;