]> source.dussan.org Git - jgit.git/commit
archive: Prepend a specified prefix to all entry filenames 87/19887/3
authorJonathan Nieder <jrn@google.com>
Tue, 17 Dec 2013 19:22:46 +0000 (11:22 -0800)
committerJonathan Nieder <jrn@google.com>
Tue, 17 Dec 2013 19:22:46 +0000 (11:22 -0800)
commitf2abbd0ea99aed638ca098e336f60f52bc923237
treef35a719bc3f26b8c80a21135d443625608ad088b
parentaad7dee3ef492e9333581e8d6b2269dc091ea1d2
archive: Prepend a specified prefix to all entry filenames

Common practice when distributing tarballs is to prefix all entries
with a single directory name so when the tarball is extracted it all
falls neatly into a single directory.  Add a setPrefix() method to
ArchiveCommand to support this.

Change-Id: I16b2832ef98c30977f6b77b646728b83d93c196f
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ArchiveTest.java
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/internal/CLIText.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java