summaryrefslogtreecommitdiffstats
path: root/t/t4018/cpp-function-returning-pointer
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-03-03 13:19:40 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-03 09:49:21 -0800
commitcb46c3faf843fa46ce2df22baeb02ad2f60da6fb (patch)
tree912a6e621ed34299fac46969ece14034e1555091 /t/t4018/cpp-function-returning-pointer
parent597f9d037df56334b9dc938ffcfeb9a879f80a7c (diff)
downloadgit-cb46c3faf843fa46ce2df22baeb02ad2f60da6fb.tar.gz
git-cb46c3faf843fa46ce2df22baeb02ad2f60da6fb.zip
parse-options: factor out register_abbrev() and struct parsed_option
Add a function, register_abbrev(), for storing the necessary details for remembering an abbreviated and thus potentially ambiguous option. Call it instead of sharing the code using goto, to make the control flow more explicit. Conveniently collect these details in the new struct parsed_option to reduce the number of necessary function arguments. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/cpp-function-returning-pointer')
0 files changed, 0 insertions, 0 deletions