mirror of https://github.com/Wilfred/difftastic/
Add tab completion for documented `dlog` alias
There's a feature of Git's completion scripts that allows
completing function aliases[1]:
> If you use complex aliases of form '!f() { ... }; f', you can use the null
> command ':' as the first command in the function body to declare the desired
> completion style
This allows completion:
$ git dlog --pat<tab>
--patch --patch-with-raw --patch-with-stat --patience
Tested on `bash`, though I believe this should also work with `zsh` and
`tsch` since their respective completion scripts also make use of the
`bash` one
[1] https://git.kernel.org/pub/scm/git/git.git/tree/contrib/completion/git-completion.bash?id=11c821f2f2a31e70fb5cc449f9a29401c333aad2#n26
pull/671/head
parent
dd7a0c87ee
commit
f984413e6b
Loading…
Reference in New Issue