Skip to content

Instantly share code, notes, and snippets.

@schleyfox
Created January 23, 2012 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schleyfox/1665869 to your computer and use it in GitHub Desktop.
Save schleyfox/1665869 to your computer and use it in GitHub Desktop.
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)
(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