]> source.dussan.org Git - jgit.git/commit
Support per-BatchRefUpdate atomic transactions 62/70962/2
authorDave Borowitz <dborowitz@google.com>
Tue, 19 Apr 2016 13:24:18 +0000 (09:24 -0400)
committerDave Borowitz <dborowitz@google.com>
Tue, 19 Apr 2016 14:01:57 +0000 (10:01 -0400)
commita37d85ccd634f01b8ca6604962a345f7b50c87bc
treefb2727dfeb3400da9176cd1b7e9c505f35641ea0
parent32156fda0bcf63d4eba53220ff2b2bc1052a1725
Support per-BatchRefUpdate atomic transactions

Repurpose RefDatabase#performsAtomicTransactions() slightly, to
indicate that the backend _supports_ atomic transactions, rather than
the current definition, which is that the backend always _uses_ atomic
transactions regardless of whether or not the caller actually wants
them. Allow BatchRefUpdate callers to turn off atomic transactions by
calling setAtomic(false). Defaulting to true means this is backwards
compatible.

Change-Id: I6df78d7df65ab147b4cce7764bd3101db985491c
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/InMemoryRepository.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftree/RefTreeBatch.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java