Ævar Arnfjörð Bjarmason 0ff7b4f976 object API: rename hash_object_file_literally() to write_*()
Before 0c3db67cc81 (hash-object --literally: fix buffer overrun with
extra-long object type, 2015-05-04) the hash-object code being changed
here called write_sha1_file() to both hash and write a loose
object. Before that we'd use hash_sha1_file() to if "-w" wasn't
provided, and otherwise call write_sha1_file().

Now we'll always call the same function for both writing. Let's rename
it from hash_*_literally() to write_*_literally(). Even though the
write_*() might not actually write if HASH_WRITE_OBJECT isn't in
"flags", having it be more similar to write_object_file_flags() than
hash_object_file(), but carrying a name that would suggest that it's a
variant of the latter is confusing.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-02-25 17:16:32 -08:00
..
2022-01-10 11:52:56 -08:00
2021-12-21 15:03:17 -08:00
2022-01-12 15:11:43 -08:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2021-12-06 09:55:06 -08:00
2022-01-12 15:11:43 -08:00
2021-10-23 10:45:25 -07:00
2022-01-10 11:52:56 -08:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2022-01-03 16:24:15 -08:00
2021-12-22 11:42:39 -08:00
2022-01-10 11:52:56 -08:00
2022-01-26 22:22:24 -08:00
2021-11-03 13:25:36 -07:00