Merge branch 'sg/completion-refs-speedup' into next
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 18:05:38 +0000 (11:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 18:05:38 +0000 (11:05 -0700)
commit6bb275710d81d5b9224645f0f4cf426da4876ff8
treec9ca4bb33241fef6c679a11b178f8ddf50d18833
parent91bf9f06b45bf7302f8235b7d7d24d9cc481e877
parent227307a639c96b3579b7fe60840fdae123d1ee88
Merge branch 'sg/completion-refs-speedup' into next

The refs completion for large number of refs has been sped up,
partly by giving up disambiguating ambiguous refs and partly by
eliminating most of the shell processing between 'git for-each-ref'
and 'ls-remote' and Bash's completion facility.

* sg/completion-refs-speedup:
  completion: speed up branch and tag completion
  completion: fill COMPREPLY directly when completing fetch refspecs
  completion: fill COMPREPLY directly when completing refs
  completion: let 'for-each-ref' sort remote branches for 'checkout' DWIMery
  completion: let 'for-each-ref' filter remote branches for 'checkout' DWIMery
  completion: let 'for-each-ref' strip the remote name from remote branches
  completion: let 'for-each-ref' and 'ls-remote' filter matching refs
  completion: don't disambiguate short refs
  completion: don't disambiguate tags and branches
  completion: support excluding full refs
  completion: support completing fully qualified non-fast-forward refspecs
  completion: support completing full refs after '--option=refs/<TAB>'
  completion: wrap __git_refs() for better option parsing
  completion: remove redundant __gitcomp_nl() options from _git_commit()
contrib/completion/git-completion.bash