git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bash completion in backticks partially broken

From
Junio C Hamano <junkio@cox.net>
Date
Nov 5, 2006, 09:48 UTC
Message-ID
<7vpsc2teb0.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20061105090540.GA4843@spearce.org>
Shawn Pearce <spearce@spearce.org> writes:
Show 6 quoted lines
> 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?

I am more interested in why you would even need to use combinations of such low-level commands in day-to-day workflow.

If they are often-needed patterns, you would have scripted them already, so completion would not be an issue for you. So I am assuming these are ad-hoc one-shot needs.

While it is satisfying to know that things you would want to do can be scripted even for one-shot use (which is how git is designed to, and it shows that the design goal has been achieved), maybe it's a sign that we are giving you too much flexibility? Under less capable/flexible system that puts you in a straightjacket, you would not even be tempted to do oddball things to begin with...

Previous: Shawn PearceNext: Shawn Pearce
Message 2 of 3 in “bash completion in backticks partially broken”
  1. Shawn PearceNov 5, 2006
  2. Junio C HamanoNov 5, 2006
  3. Shawn PearceNov 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.