jgit/org.eclipse.jgit.junit.ssh
Thomas Wolf faefa90f99 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>
2023-06-19 08:19:29 +02:00
..
.settings Merge branch 'stable-5.13' into stable-6.0 2023-04-21 00:09:10 +02:00
META-INF Prepare 6.7.0-SNAPSHOT builds 2023-05-24 17:31:26 +02:00
findBugs [spotbugs] Silence NP_BOOLEAN_RETURN_NULL in FakeUserAuthGSS#doAuth 2020-12-22 10:53:00 +01:00
resources/org/eclipse/jgit/junit/ssh Decouple JSch from JGit Core 2020-06-01 01:46:59 +02:00
src/org/eclipse/jgit/junit/ssh Default for global (user) git ignore file 2023-06-19 08:19:29 +02:00
.classpath Bump minimum required Java version to 11 2021-09-29 17:12:12 +02:00
.gitignore Move SshTestGitServer to new bundle org.eclipse.jgit.junit.ssh 2018-11-17 07:28:08 -08:00
.project Move SshTestGitServer to new bundle org.eclipse.jgit.junit.ssh 2018-11-17 07:28:08 -08:00
BUILD [bazel] Add missing dependency to slf4j-api 2020-09-01 17:51:45 +02:00
build.properties Decouple JSch from JGit Core 2020-06-01 01:46:59 +02:00
plugin.properties Fix bundle localization of Apache SSH bundle 2019-06-21 17:54:06 +02:00
pom.xml Prepare 6.7.0-SNAPSHOT builds 2023-05-24 17:31:26 +02:00