summaryrefslogtreecommitdiff
path: root/patch-ids.c
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2016-02-16 09:47:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-02-16 21:33:12 (GMT)
commitbc60f8a77c6e676225810f33117abcf9117b1c1e (patch)
tree1f2f1ea5d9fc6bd9b26c5a5653d68b6be03a41d0 /patch-ids.c
parent30f302f7e7f407c0444b32e264aaa72c4081011e (diff)
downloadgit-bc60f8a77c6e676225810f33117abcf9117b1c1e.zip
git-bc60f8a77c6e676225810f33117abcf9117b1c1e.tar.gz
git-bc60f8a77c6e676225810f33117abcf9117b1c1e.tar.bz2
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 'patch-ids.c')
0 files changed, 0 insertions, 0 deletions