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
@ -191,8 +191,8 @@ int add_reflog_for_walk(struct reflog_walk_info *info,
|
||||
reflogs = read_complete_reflog(branch);
|
||||
if (!reflogs || reflogs->nr == 0) {
|
||||
char *b;
|
||||
int ret = dwim_log(branch, strlen(branch),
|
||||
NULL, &b);
|
||||
int ret = repo_dwim_log(the_repository, branch, strlen(branch),
|
||||
NULL, &b);
|
||||
if (ret > 1)
|
||||
free(b);
|
||||
else if (ret == 1) {
|
||||
|
Reference in New Issue
Block a user