diff options
author | Caleb White <cdwhite3@pm.me> | 2024-10-07 22:12:30 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-10-08 11:49:21 -0700 |
commit | bb4a883584ab13500921325617e022142633e53a (patch) | |
tree | f635de881598909c840697a3aec21f5f4d360a3e /builtin/commit.c | |
parent | 58d8805de246352b41ca7bfd6cd70078b94ff1f1 (diff) |
worktree: refactor infer_backlink() to use *strbuf
This lays the groundwork for the next patch, which needs the backlink
returned from infer_backlink() as a `strbuf`. It seemed inefficient to
convert from `strbuf` to `char*` and back to `strbuf` again.
This refactors infer_backlink() to return an integer result and use a
pre-allocated `strbuf` for the inferred backlink path, replacing the
previous `char*` return type and improving efficiency.
Signed-off-by: Caleb White <cdwhite3@pm.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions