interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / helper / test-sha1.c

20 lines · 365 bytes Raw Blame History
1#include "test-tool.h"
2#include "hash.h"
3
4int cmd__sha1(int ac, const char **av)
5{
6 return cmd_hash_impl(ac, av, GIT_HASH_SHA1, 0);
7}
8
9int cmd__sha1_is_sha1dc(int argc UNUSED, const char **argv UNUSED)
10{
11#ifdef platform_SHA_IS_SHA1DC
12 return 0;
13#endif
14 return 1;
15}
16
17int cmd__sha1_unsafe(int ac, const char **av)
18{
19 return cmd_hash_impl(ac, av, GIT_HASH_SHA1, 1);
20}