Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/helper/test-sha1.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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 4 int cmd__sha1(int ac, const char **av) 5 { 6 return cmd_hash_impl(ac, av, GIT_HASH_SHA1, 0); 7 } 8 9 int 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 17 int cmd__sha1_unsafe(int ac, const char **av) 18 { 19 return cmd_hash_impl(ac, av, GIT_HASH_SHA1, 1); 20 }