summaryrefslogtreecommitdiff
path: root/pack-bitmap-write.c
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2020-12-31 11:56:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-04 21:01:55 (GMT)
commit7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41 (patch)
tree06e405ba8f107416381f7c9cb8b2f24b38689f62 /pack-bitmap-write.c
parente5afd4449d7f1adfd02eca573c23e7ae9c96b28d (diff)
downloadgit-7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41.zip
git-7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41.tar.gz
git-7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41.tar.bz2
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 'pack-bitmap-write.c')
-rw-r--r--pack-bitmap-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap-write.c b/pack-bitmap-write.c
index 5e998bd..27ece05 100644
--- a/pack-bitmap-write.c
+++ b/pack-bitmap-write.c
@@ -482,7 +482,7 @@ static void write_selected_commits_v1(struct hashfile *f,
struct bitmapped_commit *stored = &writer.selected[i];
int commit_pos =
- sha1_pos(stored->commit->object.oid.hash, index, index_nr, sha1_access);
+ hash_pos(stored->commit->object.oid.hash, index, index_nr, sha1_access);
if (commit_pos < 0)
BUG("trying to write commit not in index");