So an annoying feature of bash appears to be that it won't
really
provide completion on backtick'd commands.
For example I can complete "git merge-base ma"
just fine as is, but
if I toss it into backticks say "git update-ref M `git
merge-base ma"
then I can't complete "ma" out to
"master" anymore.
A little bit of debugging appears to show that bash is
invoking the
completion hook for the outermost command; that is we are
looking
for parameters for update-ref and not merge-base.
I think I could rewrite a good part of git-completion.bash
to
support this use. But it won't work for "echo `git
merge-base ma"
as the outermost command is echo and we don't have a Git
completion
hook registered for that command.
This is really annoying when it comes to less contrived
examples.
I find myself forming odd pipelines with commit-tree,
update-ref,
mktree, lstree, sed, rev-list, etc. and always keep bumping
up on
the limitations of git-completion.bash.
Any suggestions? How often do bash users try to use
backticks to
call Git commands, only to find bash isn't being as helpful
as it
should be?
--
Shawn.
-
To unsubscribe from this list: send the line
"unsubscribe git" in
the body of a message to majordomo vger.kernel.org
More majordomo info at http://vge
r.kernel.org/majordomo-info.html
|