git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Pearce <spearce@spearce.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Calling all bash completion experts..
Date: Sat, 25 Nov 2006 23:03:58 -0500	[thread overview]
Message-ID: <20061126040358.GA29855@spearce.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0611251106250.6991@woody.osdl.org>

Linus Torvalds <torvalds@osdl.org> wrote:
> 
> On Sat, 25 Nov 2006, Shawn Pearce wrote:
> > 
> > I added the nospace option because of the completion for fetch/push,
> > cat-file, diff-tree and ls-tree.
> > 
> > The problem is the file completion for e.g. cat-file.  We don't
> > want a space added after we complete a directory name, so you can
> > complete further, e.g.:
> > 
> >   git cat-file -p ma<tab>con<tab>comp<tab>git-com<tab>
> 
> But that's how directory completion _always_ works. Completion doesn't add 
> spaces to directories anyway, it adds a "/".
> 
> The branch-name thing is well-taken: you don't want to add a space after a 
> branch-name, although neither do you want to add a ":" by default.
> 
> So "nospace" after a branch (or tag) name sounds sane, but nowhere else 
> that I can see.

All in all what you are asking is reasonable.  Users really should
expect the Git completion to work just like any other completion
built-in to bash.  I've just run into some difficulty making that
be the case with all of the git commands. :)

I'm trying to push really hard on git-gui right now, to get it to
the point that people who are absolutely terrified of the command
line can still do basic operations (commit, fetch, trivial merge,
push).  'cause I really need to get a some of those users onto
a git repository (like everyone else) rather than an unbacked-up
network share which has no revision history.

I'll come back to the bash completion soon.  Jakub Narebski and
another person have both asked that I do some more work for other
commands.  I was hoping that other person might do some of the
modifications himself and contribute them back, but it looks like
he's just as busy as I am and hasn't found the time.

-- 

      reply	other threads:[~2006-11-26  4:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23 17:45 Calling all bash completion experts Linus Torvalds
2006-11-25  7:13 ` Shawn Pearce
2006-11-25 19:08   ` Linus Torvalds
2006-11-26  4:03     ` Shawn Pearce [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061126040358.GA29855@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).