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

Hi,

Basically while trying to understand the code for path completion, I found that
a lot of code was duplicated, and for not much gain.

I also noticed that doing 'git add file' doesn't add the trailing space as
before. It's not clear if it should be possible to do that with -o filenames,
but after all, what do -o filenames gives us? Nothing we can't do ourselves,
apparently.

However, in zsh the -f option does give us lots of niceties, so there's a patch
to allow that in a zsh way.

Also, add the missing tests.

Cheers.

Felipe Contreras (11):
  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: avoid compopt -o filenames
  completion: get rid of __gitcomp_file()
  completion: add space after completed filename
  completion: remove __git_index_file_list_filter()
  completion: zsh: add proper file support

 contrib/completion/git-completion.bash | 168 +++++----------------------------
 contrib/completion/git-completion.zsh  |  41 +++++++-
 t/t9902-completion.sh                  |  77 +++++++++++++++
 3 files changed, 140 insertions(+), 146 deletions(-)

-- 
1.8.2.1.1031.g2ee5873

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

end of thread, other threads:[~2013-04-27 20:13 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27 10:19 [PATCH 00/11] completion: general cleanups Felipe Contreras
2013-04-27 10:19 ` [PATCH 01/11] completion: add file completion tests Felipe Contreras
2013-04-27 10:19 ` [PATCH 02/11] completion: document tilde expansion failure in tests Felipe Contreras
2013-04-27 10:19 ` [PATCH 03/11] completion; remove unuseful comments Felipe Contreras
2013-04-27 10:19 ` [PATCH 04/11] completion: use __gitcompadd for __gitcomp_file Felipe Contreras
2013-04-27 10:19 ` [PATCH 05/11] completion: refactor diff_index wrappers Felipe Contreras
2013-04-27 10:19 ` [PATCH 06/11] completion: refactor __git_complete_index_file() Felipe Contreras
2013-04-27 10:19 ` [PATCH 07/11] completion: avoid compopt -o filenames Felipe Contreras
2013-04-27 10:19 ` [PATCH 08/11] completion: get rid of __gitcomp_file() Felipe Contreras
2013-04-27 10:19 ` [PATCH 09/11] completion: add space after completed filename Felipe Contreras
2013-04-27 10:19 ` [PATCH 10/11] completion: remove __git_index_file_list_filter() Felipe Contreras
2013-04-27 10:19 ` [PATCH 11/11] completion: zsh: add proper file support Felipe Contreras
2013-04-27 11:33 ` [PATCH 00/11] completion: general cleanups Manlio Perillo
2013-04-27 12:36   ` Felipe Contreras
2013-04-27 13:07     ` Felipe Contreras
2013-04-27 15:40       ` Manlio Perillo
2013-04-27 19:15         ` Felipe Contreras
2013-04-27 19:43           ` Felipe Contreras
2013-04-27 20:13           ` Manlio Perillo

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).