]> source.dussan.org Git - jgit.git/commit
[pgm] Fetch-CLI: add support for shallow 77/196477/2
authorHarald Weiner <timeraider@gmx.at>
Mon, 24 Oct 2022 21:07:27 +0000 (23:07 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 24 Jan 2023 09:58:24 +0000 (10:58 +0100)
commiteb3a708676e3487bbd97df384c09595034034d7e
tree6fcb49a148a8b01f0a8ebf211174565997518fc6
parentb48f5739d7a88ff0b2a2bfd55a6e8ddb10b0520d
[pgm] Fetch-CLI: add support for shallow

This adds support for shallow cloning. The CloneCommand and the
FetchCommand now have the new options --depth, --shallow-since and
--shallow-exclude to tell the server that the client doesn't want to
download the complete history.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475615
Change-Id: I8f113bed25dd6df64f2f95de6a59d4675ab8a903
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/CloneTest.java
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Fetch.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/internal/CLIText.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/CmdLineParser.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/InstantHandler.java [new file with mode: 0644]