jgit/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit
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
..
time Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
Assert.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
JGitTestUtil.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
LocalDiskRepositoryTestCase.java Default for global (user) git ignore file 2023-06-19 08:19:29 +02:00
MockSystemReader.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
Repeat.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
RepeatRule.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
RepositoryTestCase.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
SeparateClassloaderTestRunner.java Merge branch 'stable-5.10' into stable-5.11 2021-12-04 20:28:53 +01:00
StrictWorkMonitor.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
TestRepository.java Fix all Javadoc warnings and fail on them 2023-06-16 01:08:13 +02:00
TestRng.java Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00