summaryrefslogtreecommitdiff
path: root/csum-file.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-02-01 02:18:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-02 19:28:41 (GMT)
commit4d2735005a6512c4dae8b9ed892640db91351dff (patch)
tree3928da1bf2ca8adfff3324da70cceeadc4524ebf /csum-file.h
parent98a3beab6a218eeed33c82fef697c0fd8181ea95 (diff)
downloadgit-4d2735005a6512c4dae8b9ed892640db91351dff.zip
git-4d2735005a6512c4dae8b9ed892640db91351dff.tar.gz
git-4d2735005a6512c4dae8b9ed892640db91351dff.tar.bz2
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 ceb3e57..992e5c0 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 *);