Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap JGit's optional parameters for creating diff patches #2

Open
dometto opened this issue Jan 20, 2014 · 0 comments
Open

Wrap JGit's optional parameters for creating diff patches #2

dometto opened this issue Jan 20, 2014 · 0 comments

Comments

@dometto
Copy link
Contributor

dometto commented Jan 20, 2014

RJGit::Porcelain.diff(repo, :patch => true) will create an array of diff entry hashes with a git patch in the :patch key. The method does not yet allow passing in optional formatting parameters that JGit supports:

http://download.eclipse.org/jgit/docs/jgit-2.0.0.201206130900-r/apidocs/org/eclipse/jgit/diff/DiffFormatter.html

(setContext, setNewPrefix, etc.)

There is a pending spec for this in spec/rjgit_spec.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant