summaryrefslogtreecommitdiff
path: root/preload-index.c
diff options
context:
space:
mode:
authorLibravatar Martin Ågren <martin.agren@gmail.com>2020-09-27 15:15:44 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-27 14:21:47 -0700
commitef2d5547fa342197befd4be599438d7a7fa41e04 (patch)
tree6f88de25dfcfe97a81976eeb1f7c99c362524ffc /preload-index.c
parentwt-status: introduce wt_status_state_free_buffers() (diff)
downloadtgif-ef2d5547fa342197befd4be599438d7a7fa41e04.tar.xz
worktree: inline `worktree_ref()` into its only caller
We have `strbuf_worktree_ref()`, which works on a strbuf, and a wrapper for it, `worktree_ref()` which returns a string. We even make this wrapper available through worktree.h. But it only has a single caller, sitting right next to it in worktree.c. Just inline the wrapper into its only caller. This means the caller can quite naturally reuse a single strbuf. We currently achieve something similar by having a static strbuf in the wrapper. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'preload-index.c')
0 files changed, 0 insertions, 0 deletions