summaryrefslogtreecommitdiff
path: root/tree-walk.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2010-08-24 20:53:11 -0600
committerJunio C Hamano <gitster@pobox.com>2010-08-25 16:31:21 -0700
commit2244eab01bfef95621ab61d2d08a3d21ba1353cf (patch)
tree4f51d9d419936664ac1f71b775bd2f9f9f0d2d59 /tree-walk.h
parent1fda91b511c76eb233f99877c60d1c5f7801f647 (diff)
downloadgit-2244eab01bfef95621ab61d2d08a3d21ba1353cf.tar.gz
tree-walk: Correct bitrotted comment about tree_entry()
There was a code comment that referred to the "above two functions" but over time the functions immediately preceding the comment have changed. Just mention the relevant functions by name. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.h')
-rw-r--r--tree-walk.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tree-walk.h b/tree-walk.h
index 42110a465f..f78361a676 100644
--- a/tree-walk.h
+++ b/tree-walk.h
@@ -28,7 +28,10 @@ static inline int tree_entry_len(const char *name, const unsigned char *sha1)
void update_tree_entry(struct tree_desc *);
void init_tree_desc(struct tree_desc *desc, const void *buf, unsigned long size);
-/* Helper function that does both of the above and returns true for success */
+/*
+ * Helper function that does both tree_entry_extract() and update_tree_entry()
+ * and returns true for success
+ */
int tree_entry(struct tree_desc *, struct name_entry *);
void *fill_tree_descriptor(struct tree_desc *desc, const unsigned char *sha1);