mirror of
https://github.com/git/git.git
synced 2026-10-10 01:49:24 +02:00
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 <christian.couder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
51 lines
469 B
Plaintext
51 lines
469 B
Plaintext
add
|
|
am
|
|
apply
|
|
archive
|
|
blame
|
|
branch
|
|
check-ref-format
|
|
checkout
|
|
checkout-index
|
|
clone
|
|
column
|
|
credential
|
|
credential-cache
|
|
credential-store
|
|
fetch-pack
|
|
fmt-merge-msg
|
|
format-patch
|
|
fsck-objects
|
|
fsmonitor--daemon
|
|
gc
|
|
grep
|
|
index-pack
|
|
init-db
|
|
log
|
|
ls-files
|
|
ls-tree
|
|
mailinfo
|
|
mailsplit
|
|
maintenance
|
|
merge
|
|
merge-file
|
|
merge-index
|
|
merge-one-file
|
|
name-rev
|
|
notes
|
|
push
|
|
range-diff
|
|
rebase
|
|
remote
|
|
remote-ext
|
|
remote-fd
|
|
reset
|
|
restore
|
|
rev-parse
|
|
show
|
|
stage
|
|
switch
|
|
update-index
|
|
update-ref
|
|
whatchanged
|