refs: remove dwim_log()
Remove `dwim_log()` in favor of `repo_dwim_log()` so that we can get rid of one more dependency on `the_repository`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
97abaab5f6
commit
2bb444b196
2
reflog.c
2
reflog.c
@ -409,7 +409,7 @@ int reflog_delete(const char *rev, enum expire_reflog_flags flags, int verbose)
|
||||
if (!spec)
|
||||
return error(_("not a reflog: %s"), rev);
|
||||
|
||||
if (!dwim_log(rev, spec - rev, NULL, &ref)) {
|
||||
if (!repo_dwim_log(the_repository, rev, spec - rev, NULL, &ref)) {
|
||||
status |= error(_("no reflog for '%s'"), rev);
|
||||
goto cleanup;
|
||||
}
|
||||
|
Reference in New Issue
Block a user