aboutsummaryrefslogtreecommitdiff
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-09-24 17:56:23 +0200
committerJunio C Hamano <gitster@pobox.com>2012-09-24 10:22:03 -0700
commit227bf59806dc408d60f8f80a14d8dfe71b92c6d2 (patch)
tree27076879d55aac10d861cc140636d7aa638dbaca /git-add--interactive.perl
parent88182bab001a9b9e9b0acd4b888693fa7c28ff4c (diff)
downloadgit-227bf59806dc408d60f8f80a14d8dfe71b92c6d2.tar.gz
git-227bf59806dc408d60f8f80a14d8dfe71b92c6d2.tar.xz
archive-zip: write extended timestamp
File modification times in ZIP files are encoded in DOS format: local time with a granularity of two seconds. Add an extra field to all archive entries to also record the mtime in Unix' fashion, as UTC with a granularity of one second. This has the desirable side-effect of convincing Info-ZIP unzip 6.00 to respect general purpose flag 11, which is used to indicate that a file name is encoded in UTF-8. Any extra field would do, actually, but the extended timestamp is a reasonably small one (22 bytes per entry). Archives created by Info-ZIP zip 3.0 contain it, too (but with ctime and atime as well). Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-add--interactive.perl')
0 files changed, 0 insertions, 0 deletions