Files
git/builtin
Christian Couder 84631f0695 fast-import: use struct option for usage string
Currently `git fast-import -h` shows the following on a single line:

  usage : git fast-import [--date-format=<f>] [--max-pack-size=<n>] \
                          [--big-file-threshold=<n>] [--depth=<n>] \
                          [--active-branches=<n>] \
                          [--export-marks=<marks.file>]

This output has a number of issues like:

  - It's missing a lot of options.
  - It's not consistent with the SYNOPSIS section of the doc.
  - With `--help-all` instead of `-h` additional hidden options should
    be shown, but that's not the case.
  - It's not standard style anymore.
  - Most other Git commands show additional lines for most of the
    options they support.

Also while most commands use the parse-options API to handle their
options, "builtin/fast-import.c" still doesn't use it.

Let's improve on that by using the parse-options API to display the
options when `-h` and `--help-all` are used.

While at it, let's make the SYNOPSIS section of
"Documentation/git-fast-import.adoc" consistent with the new usage
string.

This deliberately leaves it to future work to also use the
parse-options API to actually parse the options.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-07-16 14:11:13 -07:00
..
2026-04-10 07:58:53 -07:00
2026-07-15 13:24:19 -07:00
2026-07-15 13:24:18 -07:00
2026-07-06 15:50:19 -07:00
2026-07-15 13:24:19 -07:00
2026-07-13 08:27:27 -07:00
2026-05-27 14:15:44 +09:00
2026-06-15 07:42:00 -07:00
2026-07-06 07:45:57 -07:00
2026-03-31 20:43:14 -07:00
2026-07-06 15:50:21 -07:00
2026-07-06 15:50:23 -07:00
2026-02-20 08:13:58 -08:00
2026-03-31 20:43:14 -07:00
2026-05-06 09:48:28 +09:00
2026-04-10 07:58:53 -07:00