Skip to content

Commit 2244eab

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1fda91b commit 2244eab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tree-walk.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ static inline int tree_entry_len(const char *name, const unsigned char *sha1)
2828
void update_tree_entry(struct tree_desc *);
2929
void init_tree_desc(struct tree_desc *desc, const void *buf, unsigned long size);
3030

31-
/* Helper function that does both of the above and returns true for success */
31+
/*
32+
* Helper function that does both tree_entry_extract() and update_tree_entry()
33+
* and returns true for success
34+
*/
3235
int tree_entry(struct tree_desc *, struct name_entry *);
3336

3437
void *fill_tree_descriptor(struct tree_desc *desc, const unsigned char *sha1);

0 commit comments

Comments
 (0)