Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2020-12-31 14:56:22 +0300
committerJunio C Hamano <gitster@pobox.com>2021-01-05 00:01:55 +0300
commit7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41 (patch)
tree06e405ba8f107416381f7c9cb8b2f24b38689f62 /sha1-lookup.h
parente5afd4449d7f1adfd02eca573c23e7ae9c96b28d (diff)
sha1-lookup: rename `sha1_pos()` as `hash_pos()`
Rename this function to reflect that we're not just able to handle SHA-1 these days. There are a few instances of "sha1" left in sha1-lookup.[ch] after this, but those will be addressed in the next commit. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Reviewed-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-lookup.h')
-rw-r--r--sha1-lookup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sha1-lookup.h b/sha1-lookup.h
index 5afcd011c6..79973d4785 100644
--- a/sha1-lookup.h
+++ b/sha1-lookup.h
@@ -1,12 +1,12 @@
#ifndef SHA1_LOOKUP_H
#define SHA1_LOOKUP_H
-typedef const unsigned char *sha1_access_fn(size_t index, void *table);
+typedef const unsigned char *hash_access_fn(size_t index, void *table);
-int sha1_pos(const unsigned char *sha1,
+int hash_pos(const unsigned char *hash,
void *table,
size_t nr,
- sha1_access_fn fn);
+ hash_access_fn fn);
/*
* Searches for sha1 in table, using the given fanout table to determine the