]> source.dussan.org Git - jgit.git/commit
CLI: Add support for excluding paths from Git log command 73/153673/5
authorJohn Tipper <John_Tipper@hotmail.com>
Mon, 2 Dec 2019 23:00:19 +0000 (23:00 +0000)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 5 Dec 2019 21:38:12 +0000 (22:38 +0100)
commit5bf226d50c96f643e9ee3161155c7ba4e641568a
tree74ec154d55fe1b490f589ea9050d105c88188cea
parentb24ec8f7159469340e4519b42bf5a57a44b75c38
CLI: Add support for excluding paths from Git log command

Git log supports the exclude pathspec, which allows for excluding paths
from the log command. JGit only supports adding paths to the log
command. See the following StackOverflow question for details:
https://stackoverflow.com/questions/59143934/java-jgit-how-to-get-git-
commits-not-affecting-certain-directories
This commit adds an excludePath() method to the log command. It does not
yet support regex or glob wildcards.

Change-Id: I8cd59950b87850b55a15c7e2ea5470145c9aae28
Signed-off-by: John Tipper <john_tipper@hotmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitAndLogCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LogFilterTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/api/LogCommand.java