get_sha1(): :path and :[0-3]:path to extract from index.
authorJunio C Hamano <junkio@cox.net>
Sat, 22 Apr 2006 00:31:04 +0000 (17:31 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 1 May 2006 00:55:34 +0000 (17:55 -0700)
commit73b0e5af9daf38734d94ed170f8800481e15567f
tree9e67263c048c5a15d9a47520c7e9e0110a601488
parent66ae0c7702e68765dad17aa05c5d9255d999216c
get_sha1(): :path and :[0-3]:path to extract from index.

Earlier patch to say <ent>:<path> by Linus was very useful, and
this extends the same idea to the current index.  An sha1
expression :<path> extracts the object name for the named path
from the current index.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_name.c