path: root/Makefile
diff options
authorJunio C Hamano <>2005-05-02 06:45:49 (GMT)
committerJunio C Hamano <>2005-05-02 06:45:49 (GMT)
commit74400e7175e3dac994e75452973d78f6a42de65e (patch)
tree07f84ebdc715d72c409ce85ab0e8a74672b0a101 /Makefile
parent285bf834bea11981ae7c2242e9f087d3effe7de8 (diff)
Add git-write-blob.
A new command, git-write-blob, is introduced. This registers the contents of any file on the filesystem as a blob in the object database and reports its SHA1 to the standard output. To implement it, the patch promotes index_fd() from a static function in update-cache.c to extern and moves it to a library source, sha1_file.c. This command is used to update git-merge-one-file-script so that it does not smudge the work tree. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Makefile')
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 86aca61..99b4753 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ PROG= git-update-cache git-diff-files git-init-db git-write-tree \
git-check-files git-ls-tree git-merge-base git-merge-cache \
git-unpack-file git-export git-diff-cache git-convert-cache \
git-http-pull git-rpush git-rpull git-rev-list git-mktag \
- git-diff-tree-helper git-tar-tree git-local-pull
+ git-diff-tree-helper git-tar-tree git-local-pull git-write-blob
all: $(PROG)
@@ -94,6 +94,7 @@ git-rev-list: rev-list.c
git-mktag: mktag.c
git-diff-tree-helper: diff-tree-helper.c
git-tar-tree: tar-tree.c
+git-write-blob: write-blob.c
git-http-pull: LIBS += -lcurl