summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2024-10-07 22:12:30 -0500
committerJunio C Hamano <gitster@pobox.com>2024-10-08 11:49:21 -0700
commitbb4a883584ab13500921325617e022142633e53a (patch)
treef635de881598909c840697a3aec21f5f4d360a3e /builtin/commit.c
parent58d8805de246352b41ca7bfd6cd70078b94ff1f1 (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