]> source.dussan.org Git - jgit.git/commit
Initialise ReceiveCommand status to NOT_ATTEMPTED for all constructors 25/21225/2
authorRoberto Tyley <roberto.tyley@gmail.com>
Wed, 29 Jan 2014 00:01:53 +0000 (00:01 +0000)
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>
Thu, 13 Feb 2014 22:45:41 +0000 (17:45 -0500)
commit47f47ffc07e00109dc069e111274252e4053a599
tree10c20429f3a49659ec2abce381fd835a2f501972
parent420cb50cc2eeaaa85cc06f605c7a61fa4798a04e
Initialise ReceiveCommand status to NOT_ATTEMPTED for all constructors

Formerly the 4-arg constructor did not do this, which was unfortunate
as that constructor's the only way for an external user of JGit to set
the /type/ of the ref-update - which you might want to do to indicate
that the update is expected to be a UPDATE_NONFASTFORWARD, and thus does
not require expensive isMergedInto() calculations:

http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg02258.html

Change-Id: I84c5e4927131e105bed93e31a62da6367c78de32
Signed-off-by: Roberto Tyley <roberto.tyley@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java