diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-03-12 03:27:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-14 17:23:50 +0100 |
commit | 1a750441a7360b29fff7a414649ece1d35acaca6 (patch) | |
tree | 6ff6fbf2c43af12082c849b9d3b6c9bb89717724 /entry.c | |
parent | sha1_file: introduce a constant for max header length (diff) | |
download | git-1a750441a7360b29fff7a414649ece1d35acaca6.tar.xz git-1a750441a7360b29fff7a414649ece1d35acaca6.zip |
convert: convert to struct object_id
Convert convert.c to struct object_id. Add a use of the_hash_algo to
replace hard-coded constants and change a strbuf_add to a strbuf_addstr
to avoid another hard-coded constant.
Note that a strict conversion using the hexsz constant would cause
problems in the future if the internal and user-visible hash algorithms
differed, as anticipated by the hash function transition plan.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'entry.c')
-rw-r--r-- | entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -266,7 +266,7 @@ static int write_entry(struct cache_entry *ce, if (ce_mode_s_ifmt == S_IFREG) { struct stream_filter *filter = get_stream_filter(ce->name, - ce->oid.hash); + &ce->oid); if (filter && !streaming_write_entry(ce, path, filter, state, to_tempfile, |