pack-write/docs: update regarding pack naming
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 22 Jul 2020 21:40:31 +0000 (23:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jul 2020 22:38:22 +0000 (15:38 -0700)
commite2bfa50ac3bfc697f3caa623213acbf591cdfa8e
tree234558ce867aff17c69ea8d5bb24aee2255cbee7
parent1190a1acf800acdcfd7569f87ac1560e2d077414
pack-write/docs: update regarding pack naming

The index-pack documentation explicitly states that the pack
name is derived from the sorted list of object names, but
since commit 1190a1acf800 ("pack-objects: name pack files
after trailer hash") that isn't true anymore.

Be less explicit in the docs as to what the exact output is,
and just say that it's whatever goes into the pack name.

Also update a comment on write_idx_file() since it no longer
modifies the sha1 variable (it's const now anyway), as noted
by Junio.

Fixes: 1190a1acf800 ("pack-objects: name pack files after trailer hash")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-index-pack.txt
pack-write.c