diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-11 13:14:51 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-11 14:23:51 -0700 |
commit | 5ba9a93b39bef057be54ecf7933386a582981625 (patch) | |
tree | fba75dfc9afd84c57d2c338e32f64cb76b66822a /sha1_file.c | |
parent | 17b787f6031d72619e4e2982ea84f47fe161cb30 (diff) | |
download | git-5ba9a93b39bef057be54ecf7933386a582981625.tar.gz |
hash-object: add --literally option
This allows "hash-object --stdin" to just hash any garbage into a
"loose object" that may not pass the standard object parsing check
or fsck, so that different kind of corrupt objects we may encounter
in the field can be imitated in our test suite. That would in turn
allow us to test features that catch these corrupt objects.
Note that "cat-file" may need to learn "--literally" option to allow
us peek into a truly broken object.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions