Age | Commit message (Expand) | Author | Files | Lines |
2025-04-17 | parse-options: introduce precision handling for `OPTION_UNSIGNED` | Patrick Steinhardt | 1 | -11/+37 |
2025-04-17 | parse-options: introduce precision handling for `OPTION_INTEGER` | Patrick Steinhardt | 1 | -13/+39 |
2025-04-17 | parse-options: rename `OPT_MAGNITUDE()` to `OPT_UNSIGNED()` | Patrick Steinhardt | 1 | -3/+3 |
2025-04-17 | parse-options: support unit factors in `OPT_INTEGER()` | Patrick Steinhardt | 1 | -4/+4 |
2025-01-28 | Merge branch 'jc/show-usage-help' | Junio C Hamano | 1 | -0/+10 |
2025-01-17 | parse-options: add show_usage_with_options_if_asked() | Junio C Hamano | 1 | -0/+10 |
2024-12-30 | parse-options: localize mark-up of placeholder text in the short help | Alexander Shopov | 1 | -3/+40 |
2024-09-27 | parse-options: free previous value of `OPTION_FILENAME` | Patrick Steinhardt | 1 | -8/+14 |
2024-03-03 | parse-options: rearrange long_name matching code | René Scharfe | 1 | -22/+15 |
2024-03-03 | parse-options: normalize arg and long_name before comparison | René Scharfe | 1 | -22/+22 |
2024-03-03 | parse-options: detect ambiguous self-negation | René Scharfe | 1 | -2/+1 |
2024-03-03 | parse-options: factor out register_abbrev() and struct parsed_option | René Scharfe | 1 | -34/+49 |
2024-03-03 | parse-options: set arg of abbreviated option lazily | René Scharfe | 1 | -3/+4 |
2024-03-03 | parse-options: recognize abbreviated negated option with arg | René Scharfe | 1 | -2/+3 |
2024-01-30 | Merge branch 'rs/parse-options-with-keep-unknown-abbrev-fix' | Junio C Hamano | 1 | -10/+11 |
2024-01-22 | parse-options: simplify positivation handling | René Scharfe | 1 | -7/+6 |
2024-01-20 | parse-options: fully disable option abbreviation with PARSE_OPT_KEEP_UNKNOWN | René Scharfe | 1 | -3/+5 |
2024-01-08 | Merge branch 'en/header-cleanup' | Junio C Hamano | 1 | -2/+0 |
2023-12-26 | treewide: remove unnecessary includes in source files | Elijah Newren | 1 | -2/+0 |
2023-12-20 | Merge branch 'jk/end-of-options' | Junio C Hamano | 1 | -2/+7 |
2023-12-09 | parse-options: decouple "--end-of-options" and "--" | Jeff King | 1 | -2/+7 |
2023-11-27 | i18n: factorize even more 'incompatible options' messages | René Scharfe | 1 | -1/+2 |
2023-10-29 | parse-options: make CMDMODE errors more precise | René Scharfe | 1 | -52/+92 |
2023-09-29 | parse: separate out parsing functions from config.h | Calvin Wan | 1 | -1/+2 |
2023-08-28 | parse-options: allow omitting option help text | René Scharfe | 1 | -3/+4 |
2023-08-25 | Merge branch 'rs/parse-options-negation-help' | Junio C Hamano | 1 | -19/+50 |
2023-08-08 | parse-options: disallow negating OPTION_SET_INT 0 | René Scharfe | 1 | -0/+3 |
2023-08-06 | parse-options: simplify usage_padding() | René Scharfe | 1 | -12/+5 |
2023-08-06 | parse-options: no --[no-]no-... | René Scharfe | 1 | -1/+24 |
2023-08-06 | parse-options: factor out usage_indent() and usage_padding() | René Scharfe | 1 | -15/+24 |
2023-08-06 | parse-options: show negatability of options in short help | René Scharfe | 1 | -2/+8 |
2023-07-19 | short help: allow a gap smaller than USAGE_GAP | Junio C Hamano | 1 | -1/+3 |
2023-07-19 | short help: allow multi-line opthelp | Junio C Hamano | 1 | -1/+11 |
2023-04-24 | commit.h: reduce unnecessary includes | Elijah Newren | 1 | -0/+1 |
2023-03-21 | treewide: remove unnecessary includes of cache.h | Elijah Newren | 1 | -1/+0 |
2023-03-21 | abspath.h: move absolute path functions from cache.h | Elijah Newren | 1 | -0/+1 |
2023-03-21 | treewide: be explicit about dependence on gettext.h | Elijah Newren | 1 | -0/+1 |
2023-03-19 | Merge branch 'jk/bundle-use-dash-for-stdfiles' | Junio C Hamano | 1 | -6/+6 |
2023-03-06 | parse-options: use prefix_filename_except_for_dash() helper | Jeff King | 1 | -3/+1 |
2023-03-06 | parse-options: consistently allocate memory in fix_filename() | Jeff King | 1 | -6/+8 |
2023-01-09 | use DUP_ARRAY | René Scharfe | 1 | -2/+1 |
2022-08-19 | parse-options: add support for parsing subcommands | SZEDER Gábor | 1 | -6/+107 |
2022-08-19 | parse-options: drop leading space from '--git-completion-helper' output | SZEDER Gábor | 1 | -1/+2 |
2022-08-19 | parse-options: PARSE_OPT_KEEP_UNKNOWN only applies to --options | SZEDER Gábor | 1 | -3/+3 |
2022-06-02 | parse-options.c: use optbug() instead of BUG() "opts" check | Ævar Arnfjörð Bjarmason | 1 | -8/+9 |
2022-06-02 | parse-options.c: use new bug() API for optbug() | Ævar Arnfjörð Bjarmason | 1 | -19/+17 |
2022-02-25 | Merge branch 'ja/i18n-common-messages' | Junio C Hamano | 1 | -0/+34 |
2022-02-05 | Merge branch 'ab/cat-file' | Junio C Hamano | 1 | -0/+13 |
2022-02-04 | i18n: factorize more 'incompatible options' messages | Jean-Noël Avila | 1 | -0/+34 |
2022-01-10 | Merge branch 'ab/usage-die-message' | Junio C Hamano | 1 | -1/+1 |
2021-12-30 | parse-options API: add a usage_msg_optf() | Ævar Arnfjörð Bjarmason | 1 | -0/+13 |
2021-12-15 | Merge branch 'ab/parse-options-cleanup' | Junio C Hamano | 1 | -3/+4 |
2021-12-07 | usage.c API users: use die_message() for "fatal :" + exit 128 | Ævar Arnfjörð Bjarmason | 1 | -1/+1 |
2021-11-10 | parse-options.c: use "enum parse_opt_result" for parse_nodash_opt() | Ævar Arnfjörð Bjarmason | 1 | -3/+4 |
2021-11-09 | Merge branch 'ab/parse-options-cleanup' | Junio C Hamano | 1 | -5/+5 |
2021-11-09 | parse-options.[ch]: revert use of "enum" for parse_options() | Ævar Arnfjörð Bjarmason | 1 | -5/+5 |
2021-10-25 | Merge branch 'ab/parse-options-cleanup' | Junio C Hamano | 1 | -38/+49 |
2021-10-13 | Merge branch 'ab/align-parse-options-help' | Junio C Hamano | 1 | -12/+64 |
2021-10-08 | parse-options: change OPT_{SHORT,UNSET} to an enum | Ævar Arnfjörð Bjarmason | 1 | -9/+14 |
2021-10-08 | parse-options.[ch]: make opt{bug,name}() "static" | Ævar Arnfjörð Bjarmason | 1 | -2/+2 |
2021-10-08 | parse-options.c: move optname() earlier in the file | Ævar Arnfjörð Bjarmason | 1 | -15/+15 |
2021-10-08 | parse-options.c: use exhaustive "case" arms for "enum parse_opt_result" | Ævar Arnfjörð Bjarmason | 1 | -1/+1 |
2021-10-08 | parse-options.[ch]: consistently use "enum parse_opt_result" | Ævar Arnfjörð Bjarmason | 1 | -14/+17 |
2021-10-08 | parse-options.[ch]: consistently use "enum parse_opt_flags" | Ævar Arnfjörð Bjarmason | 1 | -4/+7 |
2021-09-22 | parse-options: properly align continued usage output | Ævar Arnfjörð Bjarmason | 1 | -12/+64 |
2021-09-12 | parse-options API: remove OPTION_ARGUMENT feature | Ævar Arnfjörð Bjarmason | 1 | -13/+0 |
2021-07-16 | parse-options: don't complete option aliases by default | Philippe Blain | 1 | -1/+1 |
2021-03-21 | parse-options: don't leak alias help messages | Andrzej Hunt | 1 | -1/+18 |
2021-02-03 | MacOS: precompose_argv_prefix() | Torsten Bögershausen | 1 | -1/+1 |
2020-08-19 | parse-options: add --git-completion-helper-all | Ryan Zoeller | 1 | -9/+17 |
2020-03-16 | parse-options: teach "git cmd -h" to show alias as alias | Junio C Hamano | 1 | -6/+3 |
2020-03-09 | Merge branch 'pb/am-show-current-patch' | Junio C Hamano | 1 | -11/+9 |
2020-02-20 | parse-options: convert "command mode" to a flag | Paolo Bonzini | 1 | -11/+9 |
2020-02-12 | Merge branch 'jb/parse-options-message-fix' | Junio C Hamano | 1 | -2/+2 |
2020-02-05 | parse-options: lose an unnecessary space in an error message | Jacques Bodin-Hullin | 1 | -2/+2 |
2020-01-31 | C: use skip_prefix() to avoid hardcoded string length | Junio C Hamano | 1 | -2/+1 |
2019-11-10 | Fix spelling errors in code comments | Elijah Newren | 1 | -1/+1 |
2019-08-06 | parse-options: allow --end-of-options as a synonym for "--" | Jeff King | 1 | -1/+2 |
2019-05-30 | Merge branch 'nd/diff-parseopt' | Junio C Hamano | 1 | -0/+3 |
2019-05-29 | parse-options: check empty value in OPT_INTEGER and OPT_ABBREV | Nguyễn Thái Ngọc Duy | 1 | -0/+3 |
2019-05-07 | parse-options: don't emit "ambiguous option" for aliases | Nguyễn Thái Ngọc Duy | 1 | -6/+137 |
2019-04-25 | Merge branch 'js/difftool-no-index' | Junio C Hamano | 1 | -0/+2 |
2019-04-25 | Merge branch 'jk/unused-params-even-more' | Junio C Hamano | 1 | -3/+2 |
2019-04-15 | tests: disallow the use of abbreviated options (by default) | Johannes Schindelin | 1 | -0/+9 |
2019-03-20 | parse-options: drop unused ctx parameter from show_gitcomp() | Jeff King | 1 | -3/+2 |
2019-03-18 | parse-options: make OPT_ARGUMENT() more useful | Johannes Schindelin | 1 | -0/+2 |
2019-01-27 | parse-options: allow ll_callback with OPTION_CALLBACK | Nguyễn Thái Ngọc Duy | 1 | -14/+28 |
2019-01-27 | parse-options: avoid magic return codes | Nguyễn Thái Ngọc Duy | 1 | -24/+45 |
2019-01-27 | parse-options: stop abusing 'callback' for lowlevel callbacks | Nguyễn Thái Ngọc Duy | 1 | -1/+14 |
2019-01-27 | parse-options: add OPT_BITOP() | Nguyễn Thái Ngọc Duy | 1 | -0/+7 |
2019-01-27 | parse-options: disable option abbreviation with PARSE_OPT_KEEP_UNKNOWN | Nguyễn Thái Ngọc Duy | 1 | -1/+2 |
2019-01-27 | parse-options: add one-shot mode | Nguyễn Thái Ngọc Duy | 1 | -4/+22 |
2019-01-14 | Merge branch 'nd/indentation-fix' | Junio C Hamano | 1 | -1/+1 |
2019-01-04 | Merge branch 'nd/i18n' | Junio C Hamano | 1 | -29/+35 |
2018-12-15 | Merge branch 'nd/show-gitcomp-compilation-fix' into maint | Junio C Hamano | 1 | -1/+3 |
2018-12-12 | parse-options: fix SunCC compiler warning | Nguyễn Thái Ngọc Duy | 1 | -1/+3 |
2018-12-09 | Indent code with TABs | Nguyễn Thái Ngọc Duy | 1 | -1/+1 |
2018-11-12 | parse-options.c: mark more strings for translation | Nguyễn Thái Ngọc Duy | 1 | -7/+7 |
2018-11-12 | parse-options.c: turn some die() to BUG() | Nguyễn Thái Ngọc Duy | 1 | -2/+2 |
2018-11-12 | parse-options: replace opterror() with optname() | Nguyễn Thái Ngọc Duy | 1 | -20/+26 |
2018-08-17 | Merge branch 'rs/parse-opt-lithelp' | Junio C Hamano | 1 | -1/+2 |
2018-08-03 | parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP | René Scharfe | 1 | -1/+2 |
2018-06-11 | completion: collapse extra --no-.. options | Nguyễn Thái Ngọc Duy | 1 | -18/+54 |
2018-05-29 | parse-options: option to let --git-completion-helper show negative form | Nguyễn Thái Ngọc Duy | 1 | -4/+18 |
2018-04-10 | Merge branch 'ps/contains-id-error-message' | Junio C Hamano | 1 | -9/+11 |
2018-03-22 | parse-options: do not show usage upon invalid option value | Paul-Sebastian Ungureanu | 1 | -9/+11 |
2018-03-14 | Merge branch 'nd/parseopt-completion' | Junio C Hamano | 1 | -0/+46 |
2018-02-09 | remote: force completing --mirror= instead of --mirror | Nguyễn Thái Ngọc Duy | 1 | -0/+2 |
2018-02-09 | parse-options: support --git-completion-helper | Nguyễn Thái Ngọc Duy | 1 | -0/+44 |
2018-01-22 | Use MOVE_ARRAY | SZEDER Gábor | 1 | -1/+1 |
2017-09-25 | parse-options: only insert newline in help text if needed | Brandon Casey | 1 | -2/+8 |
2017-09-25 | parse-options: write blank line to correct output stream | Brandon Casey | 1 | -1/+1 |
2017-06-24 | Merge branch 'bw/config-h' | Junio C Hamano | 1 | -0/+1 |
2017-06-15 | config: don't include config.h by default | Brandon Williams | 1 | -0/+1 |
2017-05-31 | C style: use standard style for "TRANSLATORS" comments | Ævar Arnfjörð Bjarmason | 1 | -2/+4 |
2017-03-21 | prefix_filename: return newly allocated string | Jeff King | 1 | -1/+1 |
2017-03-21 | prefix_filename: drop length parameter | Jeff King | 1 | -1/+1 |
2016-12-14 | parse-options: print "fatal:" before usage_msg_opt() | Jeff King | 1 | -1/+1 |
2016-05-05 | parse-options.c: make OPTION_COUNTUP respect "unspecified" values | Pranit Bauva | 1 | -0/+2 |
2015-11-20 | parse-options: allow -h as a short option | René Scharfe | 1 | -5/+10 |
2015-11-20 | parse-options: inline parse_options_usage() at its only remaining caller | René Scharfe | 1 | -12/+1 |
2015-11-20 | parse-options: deduplicate parse_options_usage() calls | René Scharfe | 1 | -6/+12 |
2015-06-22 | parse-options: move unsigned long option parsing out of pack-objects.c | Charles Bailey | 1 | -0/+17 |
2014-09-19 | Merge branch 'jc/parseopt-verify-short-name' | Junio C Hamano | 1 | -1/+13 |
2014-09-04 | parse-options: detect attempt to add a duplicate short option name | Junio C Hamano | 1 | -1/+13 |
2014-06-20 | refactor skip_prefix to return a boolean | Jeff King | 1 | -7/+9 |
2014-04-08 | Merge branch 'mr/opt-set-ptr' | Junio C Hamano | 1 | -5/+0 |
2014-03-31 | parse-options: remove unused OPT_SET_PTR | Marat Radchenko | 1 | -5/+0 |
2014-03-24 | parse-options: make sure argh string does not have SP or _ | Junio C Hamano | 1 | -0/+3 |
2014-03-10 | use strchrnul() in place of strchr() and strlen() | Rohit Mani | 1 | -4/+1 |
2013-12-05 | replace {pre,suf}fixcmp() with {starts,ends}_with() | Christian Couder | 1 | -6/+6 |
2013-07-30 | parse-options: add OPT_CMDMODE() | Junio C Hamano | 1 | -5/+53 |
2013-02-14 | Merge branch 'ef/non-ascii-parse-options-error-diag' | Junio C Hamano | 1 | -1/+4 |
2013-02-14 | Merge branch 'jx/utf8-printf-width' | Junio C Hamano | 1 | -2/+3 |
2013-02-11 | parse-options: report uncorrupted multi-byte options | Erik Faye-Lund | 1 | -1/+4 |
2013-02-11 | Add utf8_fprintf helper that returns correct number of columns | Jiang Xin | 1 | -2/+3 |
2012-12-15 | silence some -Wuninitialized false positives | Jeff King | 1 | -9/+9 |
2012-07-08 | git on Mac OS and precomposed unicode | Torsten Bögershausen | 1 | -0/+1 |
2012-05-08 | i18n: parseopt: lookup help and argument translations when showing usage | Nguyễn Thái Ngọc Duy | 1 | -8/+11 |
2012-03-04 | parse-options: typo check for unknown switches | René Scharfe | 1 | -0/+2 |
2012-02-28 | parse-options: remove PARSE_OPT_NEGHELP | René Scharfe | 1 | -4/+2 |
2012-02-26 | parse-options: allow positivation of options starting, with no- | René Scharfe | 1 | -10/+17 |
2011-09-27 | parse-options: deprecate OPT_BOOLEAN | Junio C Hamano | 1 | -2/+2 |
2011-08-11 | Reduce parse-options.o dependencies | Dmitry Ivankov | 1 | -121/+0 |
2011-08-11 | parse-options: export opterr, optbug | Dmitry Ivankov | 1 | -2/+2 |
2011-06-22 | parse-options: add OPT_STRING_LIST helper | Jeff King | 1 | -0/+17 |
2011-03-22 | Fix sparse warnings | Stephen Boyd | 1 | -2/+2 |
2010-12-07 | parse-options: make resuming easier after PARSE_OPT_STOP_AT_NON_OPTION | Jonathan Nieder | 1 | -1/+2 |
2010-12-07 | parse-options: allow git commands to invent new option types | Jonathan Nieder | 1 | -0/+3 |
2010-12-07 | parse-options: never suppress arghelp if LITERAL_ARGHELP is set | Jonathan Nieder | 1 | -1/+2 |
2010-12-07 | parse-options: do not infer PARSE_OPT_NOARG from option type | Stephen Boyd | 1 | -17/+2 |
2010-12-07 | parse-options: sanity check PARSE_OPT_NOARG flag | Jonathan Nieder | 1 | -0/+13 |
2010-12-07 | parse-options: move NODASH sanity checks to parse_options_check | Jonathan Nieder | 1 | -7/+7 |
2010-12-07 | parse-options: clearer reporting of API misuse | Jonathan Nieder | 1 | -12/+11 |
2010-12-06 | parse-options: Don't call parse_options_check() so much | Stephen Boyd | 1 | -4/+3 |
2010-06-13 | parseopt: wrap rev-parse --parseopt usage for eval consumption | Thomas Rast | 1 | -14/+24 |
2010-05-31 | print the usage string on stdout instead of stderr | Giuseppe Scrivano | 1 | -31/+33 |
2010-03-06 | parse-options: add parse_options_concat() to concat options | Junio C Hamano | 1 | -0/+15 |
2010-02-18 | Add an optional argument for --color options | Mark Lodato | 1 | -0/+16 |
2010-01-20 | Merge branch 'jc/symbol-static' | Junio C Hamano | 1 | -2/+5 |
2010-01-12 | parse-options.c: mark file-local function static | Junio C Hamano | 1 | -2/+5 |
2009-12-04 | Teach --[no-]rerere-autoupdate option to merge, revert and friends | Junio C Hamano | 1 | -0/+7 |
2009-09-29 | parse-opt: ignore negation of OPT_NONEG for ambiguity checks | Andreas Schwab | 1 | -0/+3 |
2009-08-21 | Merge branch 'cc/replace' | Junio C Hamano | 1 | -0/+8 |
2009-07-31 | parse-opt: optionally show "--no-" option string | Johannes Schindelin | 1 | -2/+4 |
2009-06-20 | Fix various sparse warnings in the git source code | Linus Torvalds | 1 | -1/+1 |
2009-06-18 | Merge branch 'sb/parse-options-integer' | Junio C Hamano | 1 | -36/+4 |
2009-06-10 | parse-options: add parse_options_check to validate option specs. | Pierre Habouzit | 1 | -0/+24 |
2009-06-06 | parse-options: simplify usage argh handling | Stephen Boyd | 1 | -29/+4 |
2009-06-06 | parse-options: make OPT_INTEGER's argh explicit | Stephen Boyd | 1 | -9/+2 |
2009-05-31 | parse-options: add new function "usage_msg_opt" | Christian Couder | 1 | -0/+8 |
2009-05-25 | parse-opts: add OPT_FILENAME and transition builtins | Stephen Boyd | 1 | -12/+24 |
2009-05-25 | parse-opts: prepare for OPT_FILENAME | Stephen Boyd | 1 | -4/+7 |
2009-05-25 | Merge branch 'sb/show-branch-parse-options' into sb/opt-filename | Junio C Hamano | 1 | -9/+17 |
2009-05-22 | parse-options: add PARSE_OPT_LITERAL_ARGHELP for complicated argh's | Stephen Boyd | 1 | -9/+17 |
2009-05-09 | parseopt: add PARSE_OPT_NODASH | René Scharfe | 1 | -2/+27 |
2009-05-09 | parseopt: add OPT_NUMBER_CALLBACK | René Scharfe | 1 | -1/+25 |
2009-05-09 | parseopt: add OPT_NEGBIT | René Scharfe | 1 | -0/+8 |
2009-03-09 | parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together | René Scharfe | 1 | -0/+3 |
2009-03-08 | parseopt: make usage optional | René Scharfe | 1 | -0/+3 |
2009-03-08 | parseopt: add PARSE_OPT_NO_INTERNAL_HELP | René Scharfe | 1 | -4/+6 |
2009-03-08 | parseopt: add PARSE_OPT_KEEP_UNKNOWN | René Scharfe | 1 | -3/+9 |
2009-01-28 | Make opt_parse_with_commit() non-static | Jake Goulding | 1 | -0/+17 |
2008-11-14 | Teach/Fix pull/fetch -q/-v options | Tuncer Ayaz | 1 | -0/+22 |
2008-08-06 | Sync with 1.5.6.5 | Junio C Hamano | 1 | -0/+12 |
2008-08-06 | Files given on the command line are relative to $cwd | Junio C Hamano | 1 | -0/+12 |
2008-07-21 | parse-options: fix segmentation fault when a required value is missing | Olivier Marin | 1 | -1/+1 |
2008-07-16 | parse-options.c: make check_typos() static | Nanako Shiraishi | 1 | -1/+1 |
2008-07-15 | Merge branch 'mv/merge-in-c' | Junio C Hamano | 1 | -6/+0 |
2008-07-09 | parse-options: add PARSE_OPT_LASTARG_DEFAULT flag | Pierre Habouzit | 1 | -28/+27 |
2008-06-30 | Move parse-options's skip_prefix() to git-compat-util.h | Miklos Vajna | 1 | -6/+0 |
2008-06-30 | parse-opt: add PARSE_OPT_KEEP_ARGV0 parser option. | Pierre Habouzit | 1 | -0/+1 |
2008-06-30 | parse-opt: fake short strings for callers to believe in. | Pierre Habouzit | 1 | -0/+11 |
2008-06-30 | parse-opt: do not print errors on unknown options, return -2 intead. | Pierre Habouzit | 1 | -13/+30 |
2008-06-30 | parse-opt: create parse_options_step. | Pierre Habouzit | 1 | -39/+52 |
2008-06-30 | parse-opt: Export a non NORETURN usage dumper. | Pierre Habouzit | 1 | -7/+17 |
2008-06-30 | parse-opt: have parse_options_{start,end}. | Pierre Habouzit | 1 | -30/+39 |
2008-06-22 | Merge branch 'maint' | Junio C Hamano | 1 | -3/+12 |
2008-06-22 | parse-options.c: fix documentation syntax of optional arguments | Michele Ballabio | 1 | -3/+12 |
2008-06-14 | avoid whitespace on empty line in automatic usage message | Jeff King | 1 | -2/+6 |