]> source.dussan.org Git - jgit.git/commit
Add FetchCommand#setRefSpecs(String...) variant 44/104644/1
authorDave Borowitz <dborowitz@google.com>
Thu, 7 Sep 2017 11:46:25 +0000 (07:46 -0400)
committerDave Borowitz <dborowitz@google.com>
Thu, 7 Sep 2017 11:46:25 +0000 (07:46 -0400)
commitbb09e093449b96fbec13b21577a1c9781e6ca45b
treefbbea96da8cc1172a3f9d851b0c8ade8445ba821
parente68a9b3ed8dbed4708f90d97ab2747c97aa0e123
Add FetchCommand#setRefSpecs(String...) variant

Much of the time the caller can specify a RefSpec succinctly using a
string, and doesn't care about calling setters. Add a convenience method
for this case, and use it where applicable in JGit core.

Change-Id: Ic3fac7fc568eee4759236a5264d2e7e5f9b9716d
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/FetchCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java