diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-02-07 12:03:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-28 13:54:11 -0800 |
commit | 8ee018d863e521f32a9cb92db66c25e848b5e0d0 (patch) | |
tree | 440dd796327f2cb8450e130df6950153d66514b3 /builtin/commit.c | |
parent | 07242c2a5afb2a633feb110b1aa74e2adcc37575 (diff) |
rerere: let `rerere_path()` write paths into a caller-provided buffer
Same as with `get_worktree_git_dir()` a couple of commits ago, the
`rerere_path()` function returns paths that need not be free'd by the
caller because `git_path()` internally uses `get_pathname()`.
Refactor the function to instead accept a caller-provided buffer that
the path will be written into, passing on ownership to the caller. This
refactoring prepares us for the removal of `git_path()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions