Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Create binary diff and apply binary diff
Create binary diff and apply binary diff [message #1843377] Mon, 26 July 2021 22:34 Go to next message
Eclipse UserFriend
I'm trying to get the difference between 2 commits and upload it to the repository

try (DiffFormatter df = new DiffFormatter(out)) {
df.setRepository(repository);
df.format(oldcommit, newcommit);
}

try {
ApplyResult result = git.apply().setPatch(is).callSpec();
} catch (Exception e) {
}

But he doesn't see the difference in binary files.
Is this feature currently not implemented?
Re: Create binary diff and apply binary diff [message #1843378 is a reply to message #1843377] Tue, 27 July 2021 02:48 Go to previous messageGo to next message
Eclipse UserFriend
Creating binary diffs is not implemented. Applying them is available since JGit 5.12.
Re: Create binary diff and apply binary diff [message #1843379 is a reply to message #1843378] Tue, 27 July 2021 02:57 Go to previous messageGo to next message
Eclipse UserFriend
I'm using this version org.eclipse.jgit-5.12.0.202106070339-r
Re: Create binary diff and apply binary diff [message #1843380 is a reply to message #1843378] Tue, 27 July 2021 03:01 Go to previous messageGo to next message
Eclipse UserFriend
Thomas Wolf wrote on Tue, 27 July 2021 06:48
Creating binary diffs is not implemented. Applying them is available since JGit 5.12.

I'm using this version org.eclipse.jgit-5.12.0.202106070339-r
Re: Create binary diff and apply binary diff [message #1843403 is a reply to message #1843378] Tue, 27 July 2021 18:41 Go to previous message
Eclipse UserFriend
Thomas Wolf wrote on Tue, 27 July 2021 06:48
Creating binary diffs is not implemented. Applying them is available since JGit 5.12.

DiffFormatter support this options?
--binary
--text
Previous Topic:Export/import of commits and diff between repositories in binary form
Next Topic:Cannot revert commit
Goto Forum:
  


Current Time: Fri May 23 01:44:17 EDT 2025

Powered by FUDForum. Page generated in 0.05985 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top