]> git.ipfire.org Git - thirdparty/git.git/commit
pack-write: add explanation to promisor file content
authorLorenzoPegorari <lorenzo.pegorari2002@gmail.com>
Sat, 18 Apr 2026 14:16:54 +0000 (16:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Apr 2026 19:38:16 +0000 (12:38 -0700)
commit11bee4b01e4079c4ba402d28fa0526cb91951533
tree7d2a383c8922a43a484d52754e54805df76ed405
parent2f8c3f6a5a6d6a3de205be709e1a598b9d4b0b3e
pack-write: add explanation to promisor file content

In the entire codebase there is no explanation as to why the ".promisor"
files may contain the ref names (and their associated hashes) that were
fetched at the time the corresponding packfile was downloaded.

As explained in the log message of commit 5374a290 (fetch-pack: write
fetched refs to .promisor, 2019-10-14), where this loop originally came
from, these ref names (and associated hashes) are not used for anything
in the production, but are solely there to help debugging.

Explain this in a new comment.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: LorenzoPegorari <lorenzo.pegorari2002@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-write.c