diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-10-15 10:29:33 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-15 10:29:33 -0700 |
| commit | 6d1f4859e1b446bcfcd3bf8849c4e9d650ce1bd9 (patch) | |
| tree | 0555384bd83c2ca23207269a2e53dec23b325e1e | |
| parent | Merge branch 'kh/doc-markup-fixes' into maint-2.51 (diff) | |
| parent | object-name: declare pointer type of extend_abbrev_len()'s 2nd parameter (diff) | |
| download | git-6d1f4859e1b446bcfcd3bf8849c4e9d650ce1bd9.tar.gz git-6d1f4859e1b446bcfcd3bf8849c4e9d650ce1bd9.zip | |
Merge branch 'rs/object-name-extend-abbrev-len-update' into maint-2.51
Code clean-up.
* rs/object-name-extend-abbrev-len-update:
object-name: declare pointer type of extend_abbrev_len()'s 2nd parameter
| -rw-r--r-- | object-name.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/object-name.c b/object-name.c index 11aa0e6afc..ffd946116d 100644 --- a/object-name.c +++ b/object-name.c @@ -696,10 +696,9 @@ static inline char get_hex_char_from_oid(const struct object_id *oid, return hex[oid->hash[pos >> 1] & 0xf]; } -static int extend_abbrev_len(const struct object_id *oid, void *cb_data) +static int extend_abbrev_len(const struct object_id *oid, + struct min_abbrev_data *mad) { - struct min_abbrev_data *mad = cb_data; - unsigned int i = mad->init_len; while (mad->hex[i] && mad->hex[i] == get_hex_char_from_oid(oid, i)) i++; |
