diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-04-06 22:38:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-04-06 22:38:30 +0200 |
commit | 72871b198f50962a555685726e42f435cdd4efa1 (patch) | |
tree | 1ebe027331745e509d7f873b7d3a030c863ee0a6 /builtin/difftool.c | |
parent | Merge branch 'gc/config-parsing-cleanup' (diff) | |
parent | libs: use "struct repository *" argument, not "the_repository" (diff) | |
download | git-72871b198f50962a555685726e42f435cdd4efa1.tar.xz git-72871b198f50962a555685726e42f435cdd4efa1.zip |
Merge branch 'ab/remove-implicit-use-of-the-repository'
Code clean-up around the use of the_repository.
* ab/remove-implicit-use-of-the-repository:
libs: use "struct repository *" argument, not "the_repository"
post-cocci: adjust comments for recent repo_* migration
cocci: apply the "revision.h" part of "the_repository.pending"
cocci: apply the "rerere.h" part of "the_repository.pending"
cocci: apply the "refs.h" part of "the_repository.pending"
cocci: apply the "promisor-remote.h" part of "the_repository.pending"
cocci: apply the "packfile.h" part of "the_repository.pending"
cocci: apply the "pretty.h" part of "the_repository.pending"
cocci: apply the "object-store.h" part of "the_repository.pending"
cocci: apply the "diff.h" part of "the_repository.pending"
cocci: apply the "commit.h" part of "the_repository.pending"
cocci: apply the "commit-reach.h" part of "the_repository.pending"
cocci: apply the "cache.h" part of "the_repository.pending"
cocci: add missing "the_repository" macros to "pending"
cocci: sort "the_repository" rules by header
cocci: fix incorrect & verbose "the_repository" rules
cocci: remove dead rule from "the_repository.pending.cocci"
Diffstat (limited to 'builtin/difftool.c')
-rw-r--r-- | builtin/difftool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/difftool.c b/builtin/difftool.c index 01681d0fb8..74466332b5 100644 --- a/builtin/difftool.c +++ b/builtin/difftool.c @@ -296,7 +296,8 @@ static char *get_symlink(const struct object_id *oid, const char *path) } else { enum object_type type; unsigned long size; - data = read_object_file(oid, &type, &size); + data = repo_read_object_file(the_repository, oid, &type, + &size); if (!data) die(_("could not read object %s for symlink %s"), oid_to_hex(oid), path); |