Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file completion not working with git log -L #804

Open
bruce-ricard opened this issue Jun 8, 2021 · 0 comments
Open

file completion not working with git log -L #804

bruce-ricard opened this issue Jun 8, 2021 · 0 comments

Comments

@bruce-ricard
Copy link

Hi,

apologies if this is not the right place to ask. Posting in the git repo felt like I wouldn't hit the right audience.

I am having issues with my shell not autocompleting files after typing git log -L 42,42:<tab> nothing shows up. Everything else works: autocompleting of files on other commands, e.g. git log <tab> shows the files; git l<tab> gets "git log". But I cannot get it to work with the -L option.

As another example, if I type git log -L 42,42 <tab> (notice the space instead of the colon), then it does autocomplete, but for some reason the syntax of this flag is line,line:file.

Does this work for other people? If yes, would you have any pointer to help me debug why it isn't working for me? I found the testing & debugging of zsh completions. I tried hitting the debugger as I had typed git log -L 42,42:r<tab> and I get this

tags in context :completion::approximate-1:git::
argument-rest (_arguments __git_zsh_main _git)
globbed-files (_files _default _git)
tags in context :completion::approximate:::
corrections original (_approximate)
tags in context :completion::complete:git::
argument-rest (_arguments __git_zsh_main _git)
globbed-files (_files _default _git)
tags in context :completion::correct-1:git::
argument-rest (_arguments __git_zsh_main _git)
globbed-files (_files _default _git)
tags in context :completion::correct:::
corrections original (_approximate)

which I really don't understand how to read.

Please advice, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants