diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-02-07 12:03:32 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-07 09:59:22 -0800 |
| commit | bba59f58a4eeda6fafaa3d41e14f3d00a179923f (patch) | |
| tree | 51f269e242c52072952c7c35b7ddd2e3df912b28 /builtin/fsck.c | |
| parent | path: drop unused `strbuf_git_path()` function (diff) | |
| download | git-bba59f58a4eeda6fafaa3d41e14f3d00a179923f.tar.gz git-bba59f58a4eeda6fafaa3d41e14f3d00a179923f.zip | |
path: drop `git_pathdup()` in favor of `repo_git_path()`
Remove `git_pathdup()` in favor of `repo_git_path()`. The latter does
essentially the same, with the only exception that it does not rely on
`the_repository` but takes the repo as separate parameter.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
| -rw-r--r-- | builtin/fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c index 7a4dcb0716..c12203e012 100644 --- a/builtin/fsck.c +++ b/builtin/fsck.c @@ -326,7 +326,7 @@ static void check_unreachable_object(struct object *obj) printable_type(&obj->oid, obj->type), describe_object(&obj->oid)); if (write_lost_and_found) { - char *filename = git_pathdup("lost-found/%s/%s", + char *filename = repo_git_path(the_repository, "lost-found/%s/%s", obj->type == OBJ_COMMIT ? "commit" : "other", describe_object(&obj->oid)); FILE *f; |
