diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-05-22 16:33:52 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-24 13:19:22 -0700 |
commit | 360af2dadaae70f29de2f21d4eb8ac38aefcc263 (patch) | |
tree | f1be3a21d431e8e6321c00809d90a51169fdd222 /Documentation | |
parent | completion: support git-worktree (diff) | |
download | tgif-360af2dadaae70f29de2f21d4eb8ac38aefcc263.tar.xz |
worktree.c: rewrite mark_current_worktree() to avoid strbuf
strbuf is a bit overkill for this function. What we need is to call
absolute_path() twice and make sure the second call does not destroy the
result of the first. One buffer allocation is enough.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions