Merge branch 'fc/git-complete-helper' into fc/git-prompt-script
authorJunio C Hamano <gitster@pobox.com>
Tue, 22 May 2012 22:34:46 +0000 (15:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 May 2012 22:34:46 +0000 (15:34 -0700)
By Michael Haggerty (17) and others
via Junio C Hamano (36) and Jeff King (1)
* fc/git-complete-helper: (54 commits)
completion: add new __git_complete helper
Update draft release notes to 1.7.11 (11th batch)
Git 1.7.10.2
document submdule.$name.update=none option for gitmodules
The tenth batch of topics
Update draft release notes to 1.7.10.2
checkout: do not corrupt HEAD on empty repo
apply: remove lego in i18n string in gitdiff_verify_name
dir: convert to strbuf
status: refactor colopts handling
status: respect "-b" for porcelain format
status: fix null termination with "-b"
status: refactor null_termination option
commit: refactor option parsing
Documentation/git-config: describe and clarify "--local <file>" option
reflog-walk: tell explicit --date=default from not having --date at all
clone: fix progress-regression
grep.c: remove redundant line of code
checkout (detached): truncate list of orphaned commits at the new HEAD
t2020-checkout-detach: check for the number of orphaned commits
...

1  2 
t/t9902-completion.sh
diff --combined t/t9902-completion.sh
index a0ea9463277892505387b929ee42179f0906f2e8,0f09fd6109386ae408a4441562ed69b6650880ae..c8f3ec6bec641f744dd926e61909f7c05faf6bfd
@@@ -3,9 -3,21 +3,9 @@@
  # Copyright (c) 2012 Felipe Contreras
  #
  
 -if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
 -      # we are in full-on bash mode
 -      true
 -elif type bash >/dev/null 2>&1; then
 -      # execute in full-on bash mode
 -      unset POSIXLY_CORRECT
 -      exec bash "$0" "$@"
 -else
 -      echo '1..0 #SKIP skipping bash completion tests; bash not available'
 -      exit 0
 -fi
 -
  test_description='test bash completion'
  
 -. ./test-lib.sh
 +. ./lib-bash.sh
  
  complete ()
  {
@@@ -51,7 -63,7 +51,7 @@@ run_completion (
        local _cword
        _words=( $1 )
        (( _cword = ${#_words[@]} - 1 ))
-       _git && print_comp
+       __git_wrap_git && print_comp
  }
  
  test_completion ()