summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/META-INF
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2012-11-15 18:48:12 -0800
committerJonathan Nieder <jrn@google.com>2012-11-16 16:21:25 -0800
commit6a94f027b6302f1630ccbad8fd4dc5d7f54645d4 (patch)
tree0cbbde47e02285355a623f5ac27d61f340205e5e /org.eclipse.jgit.pgm/META-INF
parent789ca39adeb794ee63c7e5b6484f521de5b1f29d (diff)
downloadjgit-6a94f027b6302f1630ccbad8fd4dc5d7f54645d4.tar.gz
jgit-6a94f027b6302f1630ccbad8fd4dc5d7f54645d4.zip
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
Diffstat (limited to 'org.eclipse.jgit.pgm/META-INF')
-rw-r--r--org.eclipse.jgit.pgm/META-INF/services/org.eclipse.jgit.pgm.TextBuiltin1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/META-INF/services/org.eclipse.jgit.pgm.TextBuiltin b/org.eclipse.jgit.pgm/META-INF/services/org.eclipse.jgit.pgm.TextBuiltin
index 1a6cc8551d..24dfa7b7e8 100644
--- a/org.eclipse.jgit.pgm/META-INF/services/org.eclipse.jgit.pgm.TextBuiltin
+++ b/org.eclipse.jgit.pgm/META-INF/services/org.eclipse.jgit.pgm.TextBuiltin
@@ -1,5 +1,6 @@
org.eclipse.jgit.pgm.Add
org.eclipse.jgit.pgm.AmazonS3Client
+org.eclipse.jgit.pgm.Archive
org.eclipse.jgit.pgm.Blame
org.eclipse.jgit.pgm.Branch
org.eclipse.jgit.pgm.Checkout