git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] completion: general cleanups
@ 2013-04-27 20:09 Felipe Contreras
  2013-04-27 20:09 ` [PATCH v2 1/9] completion: add file completion tests Felipe Contreras
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Felipe Contreras @ 2013-04-27 20:09 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Manlio Perillo, Matthieu Moy, SZEDER Gábor,
	Felipe Contreras

Hi,

In the previous series I didn't notice -o filenames actually did something
useful, so in this series it's still used, however, for versions older than 4,
we use a hack to enable it. This allows us to get rid of a lot of compat code.

I also got rid of some wrappers, and fixed a regression: spaces were not added
at the end of the completion.

The result is that now we have the same completion for bash < 4, bash >=4, and
zsh. Although we already had that for the last two, now the code is simpler.

The only difference is that bash < 4 doesn't add a trailing space, like before
fea16b4 (git-completion.bash: add support for path completion).

Also, add the missing tests.

Cheers.

Felipe Contreras (9):
  completion: add file completion tests
  completion: document tilde expansion failure in tests
  completion; remove unuseful comments
  completion: use __gitcompadd for __gitcomp_file
  completion: refactor diff_index wrappers
  completion: refactor __git_complete_index_file()
  completion: add hack to enable file mode in bash < 4
  completion: add space after completed filename
  completion: remove __git_index_file_list_filter()

 contrib/completion/git-completion.bash | 145 +++++++--------------------------
 t/t9902-completion.sh                  |  77 +++++++++++++++++
 2 files changed, 107 insertions(+), 115 deletions(-)

-- 
1.8.2.1.1031.g2ee5873

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-04-28  1:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27 20:09 [PATCH v2 0/9] completion: general cleanups Felipe Contreras
2013-04-27 20:09 ` [PATCH v2 1/9] completion: add file completion tests Felipe Contreras
2013-04-27 21:24   ` Junio C Hamano
2013-04-27 20:10 ` [PATCH v2 2/9] completion: document tilde expansion failure in tests Felipe Contreras
2013-04-27 20:10 ` [PATCH v2 3/9] completion; remove unuseful comments Felipe Contreras
2013-04-27 20:10 ` [PATCH v2 4/9] completion: use __gitcompadd for __gitcomp_file Felipe Contreras
2013-04-27 20:10 ` [PATCH v2 5/9] completion: refactor diff_index wrappers Felipe Contreras
2013-04-27 21:29   ` Junio C Hamano
2013-04-27 20:10 ` [PATCH v2 6/9] completion: refactor __git_complete_index_file() Felipe Contreras
2013-04-27 20:10 ` [PATCH v2 7/9] completion: add hack to enable file mode in bash < 4 Felipe Contreras
2013-04-27 20:10 ` [PATCH v2 8/9] completion: add space after completed filename Felipe Contreras
2013-04-27 20:10 ` [PATCH v2 9/9] completion: remove __git_index_file_list_filter() Felipe Contreras
2013-04-28  1:41   ` Eric Sunshine
2013-04-28  1:45     ` Felipe Contreras
2013-04-27 21:34 ` [PATCH v2 0/9] completion: general cleanups Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).