Created
January 23, 2012 22:33
-
-
Save schleyfox/1665869 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://gitective.org/apidocs/org/gitective/core/filter/commit/CommitDiffFilter.html | |
The interface: | |
The one I want to proxy | |
boolean include(org.eclipse.jgit.revwalk.RevCommit commit, Collection<org.eclipse.jgit.diff.DiffEntry> diffs) | |
The one that I end up proxying | |
boolean include(org.eclipse.jgit.revwalk.RevWalk walker, org.eclipse.jgit.revwalk.RevCommit commit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(proxy [CommitDiffFilter] [] | |
(^boolean include [^RevCommit commit ^java.util.Collection diffs] | |
(println commit) | |
(println diffs) | |
(doseq [ diff diffs ] | |
(let [ [klass id] (split-path diff) ] | |
( ... ))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment