]> source.dussan.org Git - jgit.git/commit
PackedBatchRefUpdate: Write reflogs 57/101457/4
authorDave Borowitz <dborowitz@google.com>
Mon, 17 Jul 2017 14:01:10 +0000 (10:01 -0400)
committerDave Borowitz <dborowitz@google.com>
Wed, 26 Jul 2017 15:39:33 +0000 (11:39 -0400)
commit22e9106224e1514dbee6d6f8271187de606716a6
treea2db7f78ed1af0dba47d098d67a515c88cdbc7ca
parentdbb137e0f3ccaef7db4982127da1c7bdfc581e98
PackedBatchRefUpdate: Write reflogs

On-disk reflogs are not stored in the packed-refs file, so we cannot
ensure atomic updates. We choose the lesser evil of dropping failed
reflog updates on the floor, rather than throwing an exception even
though the underlying ref updates succeeded.

Add tests for reflogs to BatchRefUpdateTest.

Change-Id: Ia456ba9e36af8e01fde81b19af46a72378e614cd
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/BatchRefUpdateTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackedBatchRefUpdate.java