diff options
author | Caleb White <cdwhite3@pm.me> | 2024-11-29 22:22:41 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-02 09:36:16 +0900 |
commit | 5976310916458868b5cbd9d8c7cc7de5af418230 (patch) | |
tree | af8ae5aace7ddde2c793e1ec93eb5243365d3f64 /commit.c | |
parent | 1860ba1a2a96c587fca1c294d8288accf9554096 (diff) |
worktree: refactor infer_backlink return
The previous round[1] was merged a bit early before reviewer feedback
could be applied. This correctly indents a code block and updates the
`infer_backlink` function to return `-1` on failure and strbuf.len on
success.
[1]: https://lore.kernel.org/git/20241007-wt_relative_paths-v3-0-622cf18c45eb@pm.me
Signed-off-by: Caleb White <cdwhite3@pm.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions