Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Refactored fast-import's internals for future additions.
[gitweb.git]
/
cache.h
diff --git
a/cache.h
b/cache.h
index cc3f00c2b8dd868bf9069140b8ed081f1c3e5220..e00505a343a2260055f5177bdfd7740e2d5a5e33 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-222,6
+222,10
@@
static inline void hashcpy(unsigned char *sha_dst, const unsigned char *sha_src)
{
memcpy(sha_dst, sha_src, 20);
}
+static inline void hashclr(unsigned char *hash)
+{
+ memset(hash, 0, 20);
+}
int git_mkstemp(char *path, size_t n, const char *template);