rjgit icon indicating copy to clipboard operation
rjgit copied to clipboard

Wrap JGit's optional parameters for creating diff patches

Open dometto opened this issue 11 years ago • 0 comments

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

dometto avatar Jan 20 '14 23:01 dometto