]> source.dussan.org Git - jgit.git/commit
archive: Include entries for directories 66/20166/3
authorJonathan Nieder <jrn@google.com>
Fri, 27 Dec 2013 16:55:39 +0000 (08:55 -0800)
committerJonathan Nieder <jrn@google.com>
Fri, 27 Dec 2013 16:55:39 +0000 (08:55 -0800)
commit2ecc27db9297e0dd9f4113699deeadd575731106
treeb6e9cc336a072b0b7c129dcab87471402d00c035
parentf2abbd0ea99aed638ca098e336f60f52bc923237
archive: Include entries for directories

Entries for directories are optional and mostly wasted space in most
archive formats (except as a place to hang ownership and filesystem
permissions), but "git archive" includes them.  Follow suit.

This will make it easier in a later change to include empty
directories as placeholders for missing submodules.

Change-Id: I1810c686bcc9eb4d73498e4d3e763e18787b088a
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit.archive/resources/org/eclipse/jgit/archive/internal/ArchiveText.properties [new file with mode: 0644]
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/internal/ArchiveText.java [new file with mode: 0644]
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ArchiveTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java