diff options
author | Jeff King <peff@peff.net> | 2013-12-21 09:00:27 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-30 12:19:23 -0800 |
commit | b77fcd1edca58621627d46af0321a9737b1310f0 (patch) | |
tree | d3d8a17c78bf56b22c500cd46bf03b044b6228e8 /t/t0202-gettext-perl.sh | |
parent | repack: turn exts array into array-of-struct (diff) | |
download | tgif-b77fcd1edca58621627d46af0321a9737b1310f0.tar.xz |
repack: handle optional files created by pack-objects
We ask pack-objects to pack to a set of temporary files, and
then rename them into place. Some files that pack-objects
creates may be optional (like a .bitmap file), in which case
we would not want to call rename(). We already call stat()
and make the chmod optional if the file cannot be accessed.
We could simply skip the rename step in this case, but that
would be a minor regression in noticing problems with
non-optional files (like the .pack and .idx files).
Instead, we can now annotate extensions as optional, and
skip them if they don't exist (and otherwise rely on
rename() to barf).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0202-gettext-perl.sh')
0 files changed, 0 insertions, 0 deletions