completion: handle unstuck form of base git options

git-completion.bash's parsing of the command name relies on everything
preceding it starting with '-' unless it is the "-c" option.  This
allows users to use the stuck form of "--work-tree=<path>" and
"--namespace=<path>" but not the unstuck forms "--work-tree <path>" and
"--namespace <path>".  Fix this.

Similarly, the completion only handles the stuck form "--git-dir=<path>"
and not "--git-dir <path>", so fix this as well.

Signed-off-by: John Keeping <john@keeping.me.uk>
Acked-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
completion: learn about --man-path

Signed-off-by: John Keeping <john@keeping.me.uk>
Acked-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Merge branch 'origin/jk/bash-completion' into jk/pu

* branch origin/jk/bash-completion:
  completion: learn about --man-path
  completion: handle unstuck form of base git options

Cooking upstream.
Merge branch 'rebase-i-comment-squash' into jk/pu

* branch rebase-i-comment-squash:
  rebase -i: comment first line of autosquashed message

Comment out the first line of a "!squash" commit when generating a
commit message in git-rebase.

Merged to jk/pu on 2013-03-30.  Dogfooding for a while to see if
this is a sensible change.
Merge branch 'python-2to3-in-makefile' into jk/pu

* branch python-2to3-in-makefile:
  fixup! svn-fe: allow svnrdump_sim.py to run with Python 3
  Makefile: Run 2to3 on Python scripts
Merge branch 'revision-cherry-respect-ancestry-path' into jk/pu

* branch revision-cherry-respect-ancestry-path:
  revision.c: apply ancestry path before cherry
  revision.c: don't inspect uninteresting commits for cherry

Make revision.c's cherry options respect commit limiting.

Conflicts:
	revision.c
Merge branch 'patch-id-notes-cache' into jk/pu

* branch patch-id-notes-cache:
  patch-ids: cache patch IDs in a notes tree

Experiment to cache patch IDs in a notes tree.
Merge branch 'patch-id-limit-paths' into jk/pu

* branch patch-id-limit-paths:
  WIP
  patch-ids: check modified paths before calculating diff
  tree-walk.h: extract alloc_traverse_path from builtin/merge-tree.c

Conflicts:
	patch-ids.c
	patch-ids.h
Merge branch 'format-patch-msgstore' into jk/pu

* branch format-patch-msgstore:
  msgstore-gmane: new Gmane message store helper
  format-patch: extract Cc recipients from in-reply-to message
  Extract RFC2822 from builtin/mailinfo.c
  rfc2822: extract header handling from mailinfo
  format-patch: dedup Cc list