]> source.dussan.org Git - jgit.git/commit
Add setContains to ListBranchCommand (branch --contains) 19/20619/1
authorRobin Stocker <robin@nibor.org>
Tue, 14 Jan 2014 16:38:40 +0000 (17:38 +0100)
committerRobin Stocker <robin@nibor.org>
Tue, 14 Jan 2014 16:45:50 +0000 (17:45 +0100)
commitc096b42e3e6714f3df3dec317cf1826c43734eb1
tree00a6a499b410b3f9b680691e5a2639dfad23e984
parent0a38e08c1c7c676116bffaaa8c32b38337597903
Add setContains to ListBranchCommand (branch --contains)

To correspond to the behavior of "git branch", also return HEAD in case
it is detached.

Bug: 425678
Change-Id: Ie615731434d70b99bd18c7a02e832c0a2c3ceef3
Signed-off-by: Robin Stocker <robin@nibor.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BranchCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ListBranchCommand.java