Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] _git-cat-file blob completion fix



On Wed, Aug 19, 2015 at 4:05 AM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> 'git cat-file HEAD:<TAB>', when cwd is a subdirectory of a repository,
> completes files within that subdirectory, but should complete files
> relative to the repository root.  The attach patch implements that.
>
> Review would be appreciated — I might have missed something while
> reverse-engineering the semantics of everything.  (I already checked
> gitrevisions(7) and tested 'git rev-parse HEAD:<TAB>'.)
>
> I didn't make --root-relative a zparseopts option because I didn't want
> to have to name the same as git option it maps to.

You can say HEAD:./foo to specify foo relative to the current
directory. However, this doesn't work in the current completer either
afaict, so it's not a regression to apply this patch :).

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author