summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-04 05:15:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-05 07:51:07 (GMT)
commit9938af6a85dd08436ad373fc07a1ddba8dcfa170 (patch)
tree476d9177c8b5023e1804dcf9354efc1966bcdea1 /Makefile
parent37fde874c2448ae2cd98abe24df2bd2a50aa2cda (diff)
downloadgit-9938af6a85dd08436ad373fc07a1ddba8dcfa170.zip
git-9938af6a85dd08436ad373fc07a1ddba8dcfa170.tar.gz
git-9938af6a85dd08436ad373fc07a1ddba8dcfa170.tar.bz2
Update get_sha1() to grok extended format.
Everybody envies rev-parse, who is the only one that can grok the extended sha1 format. Move the get_extended_sha1() out of rev-parse, rename it to get_sha1() and make it available to everybody else. The one I posted earlier to the list had one bug where it did not handle a name that ends with a digit correctly (it incorrectly tried the "Nth parent" path). This commit fixes it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7b5397e..425e9a4 100644
--- a/Makefile
+++ b/Makefile
@@ -95,7 +95,8 @@ LIB_H=cache.h object.h blob.h tree.h commit.h tag.h delta.h epoch.h csum-file.h
pack.h pkt-line.h refs.h
LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o \
tag.o date.o index.o diff-delta.o patch-delta.o entry.o path.o \
- refs.o csum-file.o pack-check.o pkt-line.o connect.o ident.o
+ refs.o csum-file.o pack-check.o pkt-line.o connect.o ident.o \
+ sha1_name.o
LIB_H += rev-cache.h
LIB_OBJS += rev-cache.o