summaryrefslogtreecommitdiff
path: root/builtin/worktree.c
diff options
context:
space:
mode:
authorLibravatar Thomas Gummerer <t.gummerer@gmail.com>2016-02-16 10:47:49 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-16 13:33:12 -0800
commitbc60f8a77c6e676225810f33117abcf9117b1c1e (patch)
tree1f2f1ea5d9fc6bd9b26c5a5653d68b6be03a41d0 /builtin/worktree.c
parentMerge branch 'kf/http-proxy-auth-methods' (diff)
downloadtgif-bc60f8a77c6e676225810f33117abcf9117b1c1e.tar.xz
remote: use parse_config_key
95b567c7 ("use skip_prefix to avoid repeating strings") transformed calls using starts_with() and then skipping the length of the prefix to skip_prefix() calls. In remote.c there are a few calls like: if (starts_with(foo, "bar")) foo += 3 These calls weren't touched by the aformentioned commit, but can be replaced by calls to parse_config_key(), to simplify the code and clarify the intentions. Do that. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/worktree.c')
0 files changed, 0 insertions, 0 deletions