summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes
diff options
context:
space:
mode:
authorLibravatar Martin Ågren <martin.agren@gmail.com>2020-04-11 09:11:45 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-11 14:21:12 -0700
commit9881b451f33b7b0df247a4b28a9c08c65eb4ca95 (patch)
tree79dd7d81efd6e918de2f2d3b6e5ff9da694b887f /Documentation/RelNotes
parentMerge branch 'ds/default-pack-use-sparse-to-true' (diff)
downloadtgif-9881b451f33b7b0df247a4b28a9c08c65eb4ca95.tar.xz
merge: use skip_prefix to parse config key
Instead of using `starts_with()`, the magic number 7, `strlen()` and a fair number of additions to verify the three parts of the config key "branch.<branch>.mergeoptions", use `skip_prefix()` to jump through them more explicitly. We need to introduce a new variable for this (we certainly can't modify `k` just because we see "branch."!). With `skip_prefix()` we often use quite bland names like `p` or `str`. Let's do the same. If and when this function needs to do more prefix-skipping, we'll have a generic variable ready for this. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes')
0 files changed, 0 insertions, 0 deletions