On Mon, 8 Jul 2013 11:41:09 -0700 (PDT)
Andy From <andyf...@gmail.com> wrote:

> I wonder if there's been any work on providing SHA-1 tab completion
> for any command (e.g. show or diff) ?
> Completion works fine for e.g. branches but it might be a convenience 
> feature to also be able to complete on SHA-1.
> 
> Maybe there would be some performance drawbacks on this and there's
> been some discussion on this already...

A question like this should be directed to the main Git list
(git at vger.kernel.org, see [1]) which is dedicated to discussing of
the Git development.

But really let's just look at the problem: there's no single registry
of object names which would facilitate their quick lookups.  So full
support of SHA-1 completions appears to be infeasible to implement.

On the other hand, the completion function could run
`git for-each-ref ...` and try to complete through the list of returned
SHA-1 names of those references.  That would only include SHA-1 names
of all the branches, tags, notes etc but supposedly that would be okay
for most practical uses.

1. http://vger.kernel.org/vger-lists.html#git

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to