diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-09-28 16:02:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-29 01:12:04 +0300 |
commit | 750036c8f71368125b70f907fd369d5316571d01 (patch) | |
tree | 5aa31f4958f1330f49ce2501ed38d954538f7cce /refs/ref-cache.h | |
parent | 5e4546d599abdd1f3bbff0eaef77fe9a0cfcc5c3 (diff) |
refs/ref-cache.[ch]: remove "incomplete" from create_dir_entry()
Remove the now-unused "incomplete" parameter from create_dir_entry(),
all its callers specify it as "1", so let's drop the "incomplete=0"
case. The last caller to use it was search_for_subdir(), but that code
was removed in the preceding commit.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.h')
-rw-r--r-- | refs/ref-cache.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/refs/ref-cache.h b/refs/ref-cache.h index 580d4038f6..5c042ae718 100644 --- a/refs/ref-cache.h +++ b/refs/ref-cache.h @@ -169,8 +169,7 @@ struct ref_dir *get_ref_dir(struct ref_entry *entry); * "refs/heads/") or "" for the top-level directory. */ struct ref_entry *create_dir_entry(struct ref_cache *cache, - const char *dirname, size_t len, - int incomplete); + const char *dirname, size_t len); struct ref_entry *create_ref_entry(const char *refname, const struct object_id *oid, int flag); |