]> source.dussan.org Git - jgit.git/commit
Add support for "jgit archive --output=<filename>" 34/13634/1
authorJonathan Nieder <jrn@google.com>
Fri, 7 Jun 2013 01:32:10 +0000 (18:32 -0700)
committerJonathan Nieder <jrn@google.com>
Fri, 7 Jun 2013 01:39:07 +0000 (18:39 -0700)
commit1153a59e3820ebcba8b6871ae09304015c1d6f89
treec164dcc37fd690cd61bda1fb8ffcf971145283d7
parent56cb2d925c93eadf03a551a2f40bbc9cb2b3241a
Add support for "jgit archive --output=<filename>"

If the --format option is not given and the output filename is,
then infer the format from that filename.  Otherwise match
"git archive" by defaulting to tar (this is a change from the
existing "jgit archive" default behavior, which was to default to
zip).

Change-Id: I5806bc48a403d05e4cfc3c180b82b33ad7cfae7f
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ArchiveTest.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java