diff options
| author | Martin Ågren <martin.agren@gmail.com> | 2020-12-31 12:56:22 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-01-04 13:01:55 -0800 |
| commit | 7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41 (patch) | |
| tree | 06e405ba8f107416381f7c9cb8b2f24b38689f62 /commit.c | |
| parent | object-file.c: rename from sha1-file.c (diff) | |
| download | git-7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41.tar.gz git-7a7d992d0dbd78cf1fc477cf1e1caf61833b3e41.zip | |
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 'commit.c')
| -rw-r--r-- | commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -113,7 +113,7 @@ static const unsigned char *commit_graft_sha1_access(size_t index, void *table) int commit_graft_pos(struct repository *r, const unsigned char *sha1) { - return sha1_pos(sha1, r->parsed_objects->grafts, + return hash_pos(sha1, r->parsed_objects->grafts, r->parsed_objects->grafts_nr, commit_graft_sha1_access); } |
