add --path option to git hash-object
commit39702431500b76425f047209c9e9b2aae7e92b00
authorDmitry Potapov <dpotapov@gmail.com>
Sun, 3 Aug 2008 14:36:21 +0000 (3 18:36 +0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2008 20:33:06 +0000 (3 13:33 -0700)
treeff5326506a125c988f8010c826e7a355bb72525d
parent548601adcc638d96486e0f2a3dd399d4ca215eca
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>
Documentation/git-hash-object.txt
hash-object.c
t/t1007-hash-object.sh