Re: [PATCH v5] git-completion.bash: add support for path completion

2013-04-26 Thread Felipe Contreras
On Tue, Apr 23, 2013 at 10:25 AM, Manlio Perillo wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Il 21/04/2013 12:14, Felipe Contreras ha scritto: >> On Fri, Jan 11, 2013 at 12:48 PM, Manlio Perillo >> wrote: >>> The git-completion.bash script did not implemented full, git aware, >>>

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-04-23 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 21/04/2013 12:14, Felipe Contreras ha scritto: > On Fri, Jan 11, 2013 at 12:48 PM, Manlio Perillo > wrote: >> The git-completion.bash script did not implemented full, git aware, >> support to complete paths, for git commands that operate on files w

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-04-21 Thread Felipe Contreras
On Fri, Jan 11, 2013 at 12:48 PM, Manlio Perillo wrote: > The git-completion.bash script did not implemented full, git aware, > support to complete paths, for git commands that operate on files within > the current working directory or the index. > +__git_index_file_list_filter_compat () > +{ > +

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-01-13 Thread Junio C Hamano
Manlio Perillo writes: > Il 11/01/2013 23:02, Junio C Hamano ha scritto: >> Manlio Perillo writes: >> >>> +# Process path list returned by "ls-files" and "diff-index --name-only" >>> +# commands, in order to list only file names relative to a specified >>> +# directory, and append a slash to di

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-01-13 Thread Junio C Hamano
Manlio Perillo writes: >> +# Skip "git" (first argument) >> +for ((i=1; i < ${#words[@]}; i++)); do >> +word="${words[i]}" >> + >> +case "$word" in >> +--) > > Sorry, I have incorrectly (again) indented the case labels. > I have now configured m

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-01-12 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/01/2013 23:02, Junio C Hamano ha scritto: > Manlio Perillo writes: > >> +# Process path list returned by "ls-files" and "diff-index --name-only" >> +# commands, in order to list only file names relative to a specified >> +# directory, and appen

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-01-12 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/01/2013 19:48, Manlio Perillo ha scritto: > The git-completion.bash script did not implemented full, git aware, > support to complete paths, for git commands that operate on files within > the current working directory or the index. > [...] > >

Re: [PATCH v5] git-completion.bash: add support for path completion

2013-01-11 Thread Junio C Hamano
Manlio Perillo writes: > +# Process path list returned by "ls-files" and "diff-index --name-only" > +# commands, in order to list only file names relative to a specified > +# directory, and append a slash to directory names. > +__git_index_file_list_filter () > +{ > + # Default to Bash >= 4.x