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

Re: git branch --current?

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Mar 18, 2010, 02:00 UTC
Message-ID
<fcaeb9bf1003171900i261068d2m954cbc22499b1b07@mail.gmail.com>
In-Reply-To
<20100317190645.GA8304@gmail.com>
On Thu, Mar 18, 2010 at 2:06 AM, David Aguilar <davvid@gmail.com> wrote:
Show 17 quoted lines
> You caught my attention.  I don't personally like csh.  In fact,
> I'm actively working on a way to get us off of csh here at
> $dayjob.  Hence, I usually shy away from anything that
> encourages csh usage.
>
> That said, I'm a practical person.  We've written a
> git-completion.tcsh here so I figured I'd share.
>
> Caveats -- it sucks!  I'm pretty sure that this is due
> to either a) csh's poor completion facilities, or b) my
> inability to use it to its best ability.  The thing that really
> kills me is that I can't figure out how to get both path
> completion and --option completion at the same time.
> For a while I had 'echo *' in there to handle that but
> that breaks down once you start completing down a subdirectory
> (the "/" breaks it).  Hence, we always use the '--' separator
> when specifying pathspecs.
But it works, from a user point of view.
Show 6 quoted lines
> What I learned from this exercise?
> Bash completion is effin amazing!  (typed from a bash terminal)
>
> I'm sure there's plenty of ways to improve this.  Aside from
> throwing it in contrib/ and hoping others find it useful enough
> to improve it, I've probably hit my tcsh completion-foo limit.
I'll put it in my ~/.tcsh and see how it goes. Thanks.
-- 
Duy
Previous: David Aguilar
Message 6 of 6 in “git branch --current?”
  1. Nguyen Thai Ngoc DuyMar 17, 2010
  2. Jay SoffianMar 17, 2010
  3. Nguyen Thai Ngoc DuyMar 17, 2010
  4. Jay SoffianMar 17, 2010
  5. David AguilarMar 17, 2010
  6. Nguyen Thai Ngoc DuyMar 18, 2010

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.