summaryrefslogtreecommitdiffstats
path: root/csum-file.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-02-01 03:18:47 +0100
committerJunio C Hamano <gitster@pobox.com>2018-02-02 20:28:41 +0100
commit4d2735005a6512c4dae8b9ed892640db91351dff (patch)
tree3928da1bf2ca8adfff3324da70cceeadc4524ebf /csum-file.h
parentcsum-file: rename sha1file to hashfile (diff)
downloadgit-4d2735005a6512c4dae8b9ed892640db91351dff.tar.xz
git-4d2735005a6512c4dae8b9ed892640db91351dff.zip
csum-file: abstract uses of SHA-1
Convert several direct uses of SHA-1 to use the_hash_algo instead. Convert one use of the constant 20 as well. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.h')
-rw-r--r--csum-file.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/csum-file.h b/csum-file.h
index ceb3e5712d..992e5c0141 100644
--- a/csum-file.h
+++ b/csum-file.h
@@ -8,7 +8,7 @@ struct hashfile {
int fd;
int check_fd;
unsigned int offset;
- git_SHA_CTX ctx;
+ git_hash_ctx ctx;
off_t total;
struct progress *tp;
const char *name;
@@ -20,7 +20,7 @@ struct hashfile {
/* Checkpoint */
struct hashfile_checkpoint {
off_t offset;
- git_SHA_CTX ctx;
+ git_hash_ctx ctx;
};
extern void hashfile_checkpoint(struct hashfile *, struct hashfile_checkpoint *);