aboutsummaryrefslogtreecommitdiffstats
path: root/wt-status.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-03-28 15:58:54 +0200
committerJunio C Hamano <gitster@pobox.com>2023-03-28 07:36:46 -0700
commit12cb1c10a64170a5d600dd1c6c8abfeec105fb6b (patch)
tree2209f7a97ef9e13aa6979efacd4f6dc93f23d5f7 /wt-status.c
parenta5183d7696db34433ebcae64bad7609d5bb3a744 (diff)
downloadgit-12cb1c10a64170a5d600dd1c6c8abfeec105fb6b.tar.gz
cocci: apply the "refs.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "refs.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index c55c51b192..dcd1d0cee4 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -1664,7 +1664,8 @@ static void wt_status_get_detached_from(struct repository *r,
return;
}
- if (dwim_ref(cb.buf.buf, cb.buf.len, &oid, &ref, 1) == 1 &&
+ if (repo_dwim_ref(the_repository, cb.buf.buf, cb.buf.len, &oid, &ref,
+ 1) == 1 &&
/* oid is a commit? match without further lookup */
(oideq(&cb.noid, &oid) ||
/* perhaps oid is a tag, try to dereference to a commit */