diff options
author | Kaushik Lingarkar <quic_kaushikl@quicinc.com> | 2024-02-22 15:29:48 -0800 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-03-05 00:17:47 +0100 |
commit | 21f7fdff79ce2863aba40bc2b676059884a3a8e9 (patch) | |
tree | baab6bd9cfe000d524fd4fdb9dc18994c1a66c79 /tools/maven-central/download.rb | |
parent | 1a654d3db6e5bd667dd5218a55084545538519a2 (diff) | |
download | jgit-21f7fdff79ce2863aba40bc2b676059884a3a8e9.tar.gz jgit-21f7fdff79ce2863aba40bc2b676059884a3a8e9.zip |
Introduce core.trustLooseRefStat config
With repositories on NFS, JGit can read an old value of a loose ref
or miss the existence of a loose ref if file attributes of the loose
ref or its parent directories are cached by NFS. Introduce a new config
'core.trustLooseRefStat' that will optionally refresh file attributes of
the loose ref (at least on some NFS clients).
Possible values for this new config are:
* always: Trust loose ref file attributes (default)
* after_open: Similar to 'always', but refresh the file attributes of
the loose ref and its parent directories before trusting
it
The default is set to always trust the file attributes as after_open is
known to degrade performance.
In a subsequent change, SnapshottingRefDirectory will be updated to
cache the directories that were refreshed to avoid duplicate work and
thereby improve performance to some extent for the after_open setting.
Change-Id: I9dfaeaf5307b2b51ce6ee4bfd9e0678786685fcf
Signed-off-by: Kaushik Lingarkar <quic_kaushikl@quicinc.com>
Diffstat (limited to 'tools/maven-central/download.rb')
0 files changed, 0 insertions, 0 deletions