aboutsummaryrefslogtreecommitdiff
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2026-02-28 10:19:16 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-02 07:39:01 -0800
commit237e520d81201eee609cf21e24f1c7ac6719ec8a (patch)
tree049859b247223f25291cf20217aedd91554fae57 /builtin/pack-objects.c
parenta5f2ff6ce87b1a07953461536f2b0c22631c94ba (diff)
downloadgit-237e520d81201eee609cf21e24f1c7ac6719ec8a.tar.xz
parseopt: check for duplicate long names and numerical options
We already check for duplicate short names. Check for and report duplicate long names and numerical options as well. Perform the slightly expensive string duplicate check only when showing the usage to keep the cost of normal invocations low. t0012-help.sh covers it. Helped-by: Jeff King <peff@peff.net> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-objects.c')
0 files changed, 0 insertions, 0 deletions