Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Encrypting git repositories in Eclipse(Getting Eclipse to use git-crypt diff)
Encrypting git repositories in Eclipse [message #1769706] Wed, 02 August 2017 19:52 Go to next message
Dominic Cerisano is currently offline Dominic CerisanoFriend
Messages: 10
Registered: October 2016
Junior Member
Remote Git repos can be encrypted with git-crypt.

Git-crypt uses gitattributes to specify its own git filter and diff function, eg:
secure-dir/**   filter=git-crypt diff=git-crypt]


This works transparently in EGit/JGit except that the git-crypt diff function is not being called when comparing file versions (see fig. 1).

Is there a way to insert the git-crypt diff function into the Eclipse pipeline, so it is called before the EGit/JGit diff function?

http://dcerisano.github.io/misc/egit.jpg
Figure 1 - Egit/JGit not calling git-crypt during diff

[Updated on: Wed, 02 August 2017 20:01]

Report message to a moderator

Re: Encrypting git repositories in Eclipse [message #1770058 is a reply to message #1769706] Mon, 07 August 2017 21:07 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
Interesting. That's the normal Eclipse compare editor. I don't think the diff setting from .gitattributes should apply at all: EGit just gets the blob from the commit's tree and feeds that to the Eclipse compare framework.

It appears that when the blob is gotten, EGit/JGit should apply the filter from .gitattributes but doesn't?
Re: Encrypting git repositories in Eclipse [message #1770115 is a reply to message #1770058] Tue, 08 August 2017 13:29 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
In the screenshot I see that the file is at /archive/docs. So surely your .gitattributes entry is not "secure-dir/**" for this case. What is the exact pattern, and where is the .gitattributes file itself located?

[Updated on: Tue, 08 August 2017 13:30]

Report message to a moderator

Re: Encrypting git repositories in Eclipse [message #1770120 is a reply to message #1770115] Tue, 08 August 2017 14:01 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
Entered as bug 520693.
Re: Encrypting git repositories in Eclipse [message #1786813 is a reply to message #1770120] Sat, 12 May 2018 22:18 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
Should be fixed now in EGit nightly.
Previous Topic:Can't connect to any repository
Next Topic:fetchResult not working for Jgit (4.9.2.201712150930-r)
Goto Forum:
  


Current Time: Thu Mar 28 18:37:53 GMT 2024

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

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

Back to the top