author | Dmitry Potapov <dpotapov@gmail.com> | |
Sun, 3 Aug 2008 14:36:21 +0000 (18:36 +0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 3 Aug 2008 20:33:06 +0000 (13:33 -0700) | ||
commit | 39702431500b76425f047209c9e9b2aae7e92b00 | |
tree | ff5326506a125c988f8010c826e7a355bb72525d | tree | snapshot |
parent | 548601adcc638d96486e0f2a3dd399d4ca215eca | commit | diff |
add --path option to git hash-object
The --path option allows us to pretend as if the contents being hashed
came from the specified path, and affects which input filter is used via
the attributes mechanism. This is useful for hashing a temporary file
whose name is different from the path that is meant to have the hashed
contents.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The --path option allows us to pretend as if the contents being hashed
came from the specified path, and affects which input filter is used via
the attributes mechanism. This is useful for hashing a temporary file
whose name is different from the path that is meant to have the hashed
contents.
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-hash-object.txt | diff | blob | history | |
hash-object.c | diff | blob | history | |
t/t1007-hash-object.sh | diff | blob | history |