author | Junio C Hamano <junkio@cox.net> | |
Mon, 2 May 2005 06:45:49 +0000 (23:45 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 2 May 2005 06:45:49 +0000 (23:45 -0700) | ||
commit | 74400e7175e3dac994e75452973d78f6a42de65e | |
tree | 07f84ebdc715d72c409ce85ab0e8a74672b0a101 | tree | snapshot |
parent | 285bf834bea11981ae7c2242e9f087d3effe7de8 | commit | 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 <junkio@cox.net>
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>
Makefile | diff | blob | history | |
cache.h | diff | blob | history | |
sha1_file.c | diff | blob | history | |
update-cache.c | diff | blob | history | |
write-blob.c | [new file with mode: 0644] | blob |