aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.20.target
diff options
context:
space:
mode:
authorThomas Wolf <twolf@apache.org>2023-07-05 22:21:30 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-08-28 22:05:47 +0200
commita2f326b76200c8def03eb136811c2cb5bc304f89 (patch)
tree1bf6418ffdb374968740aeb96d73185b2b0da697 /org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.20.target
parent0d5e0176127e273ba583fbdcd81826fc5053fbfc (diff)
downloadjgit-a2f326b76200c8def03eb136811c2cb5bc304f89.tar.gz
jgit-a2f326b76200c8def03eb136811c2cb5bc304f89.zip
Handle global git config $XDG_CONFIG_HOME/git/config
C git uses this alternate fallback location if the file exists and ~/.gitconfig does not. Implement this also for JGit. If both files exist, reading behavior is as if the XDG config was inserted between the HOME config and the system config. Writing behaviour is different: all changes will be applied only in the HOME config. Updates will occur in the XDG config only if the HOME config does not exist. This is consistent with the behavior of C git; compare [1], especially the sections on FILES and SCOPES, and the description of the --global option. [1] https://git-scm.com/docs/git-config Bug: 581875 Change-Id: I2460b9aa963fd2811ed8a5b77b05107d916f2b44 Signed-off-by: Thomas Wolf <twolf@apache.org>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.20.target')
0 files changed, 0 insertions, 0 deletions