Merge branch 'nd/parseopt-completion'
commit7fb6aefd2aaffe66e614f7f7b83e5b7ab16d4806
authorJunio C Hamano <gitster@pobox.com>
Wed, 14 Mar 2018 19:01:06 +0000 (14 12:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Mar 2018 19:01:07 +0000 (14 12:01 -0700)
treeef9ef31f2e17a35974152e821b02bd2d8ae33ce6
parent99321e327b4df8d9d6724cf26bab7429edbdb718
parent27b42d045c06b6138555fef2b00d8d72220bc8be
Merge branch 'nd/parseopt-completion'

Teach parse-options API an option to help the completion script,
and make use of the mechanism in command line completion.

* nd/parseopt-completion: (45 commits)
  completion: more subcommands in _git_notes()
  completion: complete --{reuse,reedit}-message= for all notes subcmds
  completion: simplify _git_notes
  completion: don't set PARSE_OPT_NOCOMPLETE on --rerere-autoupdate
  completion: use __gitcomp_builtin in _git_worktree
  completion: use __gitcomp_builtin in _git_tag
  completion: use __gitcomp_builtin in _git_status
  completion: use __gitcomp_builtin in _git_show_branch
  completion: use __gitcomp_builtin in _git_rm
  completion: use __gitcomp_builtin in _git_revert
  completion: use __gitcomp_builtin in _git_reset
  completion: use __gitcomp_builtin in _git_replace
  remote: force completing --mirror= instead of --mirror
  completion: use __gitcomp_builtin in _git_remote
  completion: use __gitcomp_builtin in _git_push
  completion: use __gitcomp_builtin in _git_pull
  completion: use __gitcomp_builtin in _git_notes
  completion: use __gitcomp_builtin in _git_name_rev
  completion: use __gitcomp_builtin in _git_mv
  completion: use __gitcomp_builtin in _git_merge_base
  ...
15 files changed:
apply.c
builtin/checkout.c
builtin/fetch.c
builtin/gc.c
builtin/grep.c
builtin/mv.c
builtin/notes.c
builtin/pull.c
builtin/remote.c
builtin/replace.c
builtin/submodule--helper.c
builtin/tag.c
builtin/worktree.c
contrib/completion/git-completion.bash
parse-options.c