jgit/org.eclipse.jgit.pgm.test
Jonathan Nieder 6a94f027b6 Add "jgit archive" tool that writes a tree as a ZIP file
C Git's "git archive" command represents a tree object using a
standard archival format like tar, zip, or tgz, ready for consumption
by other, git-unaware users or tools.

Add a bare-bones analagous "jgit archive" command to show what is
possible, supporting only ZIP format for now.  It uses java.util.zip
which is not aware of the InfoZIP extensions for representing symlinks
and file permissions, so symlinks, executable files, and submodule
entries are represented as plain text files.

Making this functionality available from the library, improving
handling of special entries, and support for other output formats are
left for later patches.  Ultimately the intent is to offer a
TreeArchiveStream class for use by web frontends like Gitiles to offer
"download as zip/tgz/txz" links and use by, for example, code search
tools to get easy access to the content of git tree objects.

Test with "jgit archive my-favorite-tree >out.zip".

Change-Id: Ib590f173ceff3df4b58493cecccd6b9a1b355e3d
2012-11-16 16:21:25 -08:00
..
.settings Harmonize the JDT settings within JGit 2012-11-16 10:25:45 -08:00
META-INF Prepare 2.2.0 builds 2012-09-19 09:10:12 +02:00
src/org/eclipse/jgit Allow commandline tests to use raw output 2012-11-16 15:45:52 -08:00
tst/org/eclipse/jgit/pgm Add "jgit archive" tool that writes a tree as a ZIP file 2012-11-16 16:21:25 -08:00
.classpath Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
.gitignore Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
.project Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
about.html Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
build.properties Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
org.eclipse.jgit.pgm--All-Tests.launch Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
plugin.properties Allow to write tests with CLI syntax 2012-04-18 18:57:36 +02:00
pom.xml Prepare 2.2.0 builds 2012-09-19 09:10:12 +02:00