]> source.dussan.org Git - jgit.git/commit
Allow to perform PackedBatchRefUpdate without locking loose refs 10/196510/3
authorSaša Živkov <sasa.zivkov@sap.com>
Fri, 21 Oct 2022 14:32:03 +0000 (16:32 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Oct 2022 14:51:08 +0000 (16:51 +0200)
commitcb90ed08526bd51f04e5d72e3ba3cf5bd30c11e4
tree530515174ef8a27941d378bb4acc7ff820130360
parentd01376106af8800017ac3c08d7c7ac1fd5ccc9ee
Allow to perform PackedBatchRefUpdate without locking loose refs

Add another newBatchUpdate method in the RefDirectory where we can
control if the created PackedBatchRefUpdate will lock the loose refs or
not.

This can be useful in cases when we run programs which have exclusive
access to a Git repository and we know that locking loose refs is
unnecessary and just a performance loss.

Change-Id: I7d0932eb1598a3871a2281b1a049021380234df9
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackedBatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java