test-sha1: add a binary output mode
authorJeff King <redacted>
Thu, 22 Aug 2013 23:12:42 +0000 (19:12 -0400)
committerJunio C Hamano <redacted>
Thu, 22 Aug 2013 23:39:46 +0000 (16:39 -0700)
commit54c93cb4afc932ab125a59464bb52e04f9c36575
treee24ef0732149477457bfad763089b90ece8adf86
parenta3bc3d070cacf07dbe11b4bfec57554c8bbf1957
test-sha1: add a binary output mode

The test-sha1 helper program will run our internal sha1
routines over its input and output the 40-byte hex sha1.
Sometimes, however, it is useful to have the binary 20-byte
sha1 (and it's a pain to convert back in the shell). Let's
add a "-b" option to output the binary version.

Signed-off-by: Jeff King <redacted>
Acked-by: Nicolas Pitre <redacted>
Signed-off-by: Junio C Hamano <redacted>
test-sha1.c
git clone https://git.99rst.org/PROJECT