diff options
author | Junio C Hamano <junkio@cox.net> | 2005-05-01 23:45:49 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-05-01 23:45:49 -0700 |
commit | 74400e7175e3dac994e75452973d78f6a42de65e (patch) | |
tree | 07f84ebdc715d72c409ce85ab0e8a74672b0a101 /Makefile | |
parent | 285bf834bea11981ae7c2242e9f087d3effe7de8 (diff) | |
download | git-74400e7175e3dac994e75452973d78f6a42de65e.tar.gz git-74400e7175e3dac994e75452973d78f6a42de65e.tar.xz |
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 <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |