Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-07-13 18:06:40 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-13 22:42:51 +0300
commitab7ded34d6a9a5d4c8bf073cb9627b8054f430cf (patch)
tree89e0a07f1f31ad462947b433e25c3edb98ad1931 /color.c
parent29ef53cd361e8751f9f2f40811af0ce863e449b6 (diff)
ref-filter: pass ref_format struct to atom parsers
The callback for parsing each formatting atom gets to see only the atom struct (which it's filling in) and the text to be parsed. This doesn't leave any room for it to behave differently based on context known only to the ref_format. We can solve this by passing in the surrounding ref_format to each parser. Note that this makes things slightly awkward for sort strings, which parse atoms without having a ref_format. We'll solve that by using a dummy ref_format with default parameters. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'color.c')
0 files changed, 0 insertions, 0 deletions