summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.gpg.bc.test
diff options
context:
space:
mode:
authorThomas Wolf <twolf@apache.org>2023-06-15 22:08:06 +0200
committerThomas Wolf <twolf@apache.org>2023-06-19 08:19:29 +0200
commitfaefa90f990858db7bec199501cb37f2631c43d0 (patch)
tree0a0500f2e2cd11b8582ee01a4582f5dcaa756bc2 /org.eclipse.jgit.gpg.bc.test
parent7b955048eb86e1c12114554beacb27b329252b15 (diff)
downloadjgit-faefa90f990858db7bec199501cb37f2631c43d0.tar.gz
jgit-faefa90f990858db7bec199501cb37f2631c43d0.zip
Default for global (user) git ignore file
C git has a default for git config core.excludesfile: "Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead." [1] Implement this in the WorkingTreeIterator$RootIgnoreNode. To make this testable, mock the "user.home" directory for all JGit tests, otherwise tests might pick up a real user's git ignore file. Also ensure that JGit code always reads "user.home" via the SystemReader. Add tests for both locations. [1] https://git-scm.com/docs/gitignore#_description Bug: 436127 Change-Id: Ie510259320286c3c13a6464a37da1bd9ca1e373a Signed-off-by: Thomas Wolf <twolf@apache.org>
Diffstat (limited to 'org.eclipse.jgit.gpg.bc.test')
0 files changed, 0 insertions, 0 deletions