From: Elijah Newren Date: Thu, 26 Aug 2010 06:21:47 +0000 (-0600) Subject: tree-walk: Correct bitrotted comment about tree_entry() X-Git-Tag: v1.7.4-rc0~171^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dabb061fa358e8884889632f0be5b6c76916c893;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/tree-walk.h b/tree-walk.h index 42110a465..f78361a67 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);