]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
index-pack: refactor writing of .keep files
authorJonathan Tan <jonathantanmy@google.com>
Tue, 5 Dec 2017 16:58:48 +0000 (16:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Dec 2017 17:46:05 +0000 (09:46 -0800)
commit8e29c7c3af0b27271769052d758d818b149f45c9
tree9bb876439d309b1dc0c299bf97cd1d41cec27df0
parent096c9b8be95ae18f78f6b4750b1d93c3cf9c8f05
index-pack: refactor writing of .keep files

In a subsequent commit, index-pack will be taught to write ".promisor"
files which are similar to the ".keep" files it knows how to write.
Refactor the writing of ".keep" files, so that the implementation of
writing ".promisor" files becomes easier.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c