aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/am.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-02-07 12:03:32 +0100
committerJunio C Hamano <gitster@pobox.com>2025-02-07 09:59:22 -0800
commitbba59f58a4eeda6fafaa3d41e14f3d00a179923f (patch)
tree51f269e242c52072952c7c35b7ddd2e3df912b28 /builtin/am.c
parentpath: drop unused `strbuf_git_path()` function (diff)
downloadgit-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/am.c')
-rw-r--r--builtin/am.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 390b463144..2921bb89ef 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -158,7 +158,7 @@ static void am_state_init(struct am_state *state)
memset(state, 0, sizeof(*state));
- state->dir = git_pathdup("rebase-apply");
+ state->dir = repo_git_path(the_repository, "rebase-apply");
state->prec = 4;