50c817e0c0
Since we're going to have multiple hash algorithms to test, it makes sense to share as much of the test code as possible. Convert the sha1 helper for the test-tool to be generic and move it out into its own module. This will allow us to share most of this code with our NewHash implementation. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
8 lines
132 B
C
8 lines
132 B
C
#include "test-tool.h"
|
|
#include "cache.h"
|
|
|
|
int cmd__sha1(int ac, const char **av)
|
|
{
|
|
return cmd_hash_impl(ac, av, GIT_HASH_SHA1);
|
|
}
|