> From: Konstantin Khomoutov <flatw...@users.sourceforge.net>
> 
> 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.

There must be some sort of index of object names, because you can look
up objects by giving only their hashes.  Some of the object names are
the file names in .git/objects/??/*, though I haven't figured out how
the "pack" files are indexed.

I suspect the reason that hash completion hasn't been done yet is more
that it isn't very useful.  If you type "8d40fc" and auto-completion
offers

    8d40fc7e56eeb9ea725054822de5c8c145a65c
    8d40fc088ee0223992617c6e45f0bae7915161
    8d40fc0263d7cfc32017fdbf8cb9101613ab9c

that won't prompt your memory, "Ah, yes,
8d40fc088ee0223992617c6e45f0bae7915161 is the one I was looking for!"
In most modern systems, you use a hash only when you copy it from
somewhere else, and there usually is a cut-and-paste functionality
that allows you to do that.

Dale

-- 
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