Skip to content

Commit

Permalink
tree-walk: Correct bitrotted comment about tree_entry()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Elijah Newren authored and Junio C Hamano committed Aug 26, 2010
1 parent b6b987a commit dabb061
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tree-walk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dabb061

Please sign in to comment.