]> source.dussan.org Git - jgit.git/commit
Support force writing reflog on a per-update basis 96/102396/5
authorDave Borowitz <dborowitz@google.com>
Tue, 1 Aug 2017 12:53:33 +0000 (08:53 -0400)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Sat, 30 Sep 2017 10:55:31 +0000 (11:55 +0100)
commit77a28e0d5805da2880ff79a5b54250e7e0b7c9c6
tree2fe32162ec296c4124ba697f4439d6d185bd5fe2
parentb1ae96bf84e7c0e48ef5d972b4f96c9627af0508
Support force writing reflog on a per-update basis

Even if a repository has core.logAllRefUpdates=true, ReflogWriter does
not create reflog files unless the refs are under a hard-coded list of
prefixes, or unless the forceWrite bit is set. Expose the forceWrite bit
on a per-update basis in RefUpdate/BatchRefUpdate/ReceiveCommand,
creating RefLogWriters as necessary.

Change-Id: Ifc851fba00f76bf56d4134f821d0576b37810f80
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/BatchRefUpdateTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefUpdateTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackedBatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectoryUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java