diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-06-27 11:28:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-27 21:45:17 +0200 |
commit | 5e575807337d15dbecf88767e709df08304e3b94 (patch) | |
tree | e74223df14c8a18469a7c9d86825c23fb1142152 /tree-walk.h | |
parent | sha1-file.c: remove the_repo from read_object_with_reference() (diff) | |
download | git-5e575807337d15dbecf88767e709df08304e3b94.tar.xz git-5e575807337d15dbecf88767e709df08304e3b94.zip |
tree-walk.c: remove the_repo from fill_tree_descriptor()
While at there, clean up the_repo usage in builtin/merge-tree.c a tiny
bit.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.h')
-rw-r--r-- | tree-walk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tree-walk.h b/tree-walk.h index 161e2400f4..9aa1042642 100644 --- a/tree-walk.h +++ b/tree-walk.h @@ -45,7 +45,9 @@ int init_tree_desc_gently(struct tree_desc *desc, const void *buf, unsigned long int tree_entry(struct tree_desc *, struct name_entry *); int tree_entry_gently(struct tree_desc *, struct name_entry *); -void *fill_tree_descriptor(struct tree_desc *desc, const struct object_id *oid); +void *fill_tree_descriptor(struct repository *r, + struct tree_desc *desc, + const struct object_id *oid); struct traverse_info; typedef int (*traverse_callback_t)(int n, unsigned long mask, unsigned long dirmask, struct name_entry *entry, struct traverse_info *); |