Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Create binary diff and apply binary diff
Create binary diff and apply binary diff [message #1843377] Tue, 27 July 2021 02:34 Go to next message
Yuriy Mitrofanov is currently offline Yuriy MitrofanovFriend
Messages: 22
Registered: July 2021
Junior Member
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 06:48 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
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 06:57 Go to previous messageGo to next message
Yuriy Mitrofanov is currently offline Yuriy MitrofanovFriend
Messages: 22
Registered: July 2021
Junior Member
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 07:01 Go to previous messageGo to next message
Yuriy Mitrofanov is currently offline Yuriy MitrofanovFriend
Messages: 22
Registered: July 2021
Junior Member
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 22:41 Go to previous message
Yuriy Mitrofanov is currently offline Yuriy MitrofanovFriend
Messages: 22
Registered: July 2021
Junior Member
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: Thu Apr 25 00:27:14 GMT 2024

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

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

Back to the top