Skip to main content



      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 15:52 Go to next message
Eclipse UserFriend
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 16:01] by Moderator

Re: Encrypting git repositories in Eclipse [message #1770058 is a reply to message #1769706] Mon, 07 August 2017 17:07 Go to previous messageGo to next message
Eclipse UserFriend
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 09:29 Go to previous messageGo to next message
Eclipse UserFriend
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 09:30] by Moderator

Re: Encrypting git repositories in Eclipse [message #1770120 is a reply to message #1770115] Tue, 08 August 2017 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Entered as bug 520693.
Re: Encrypting git repositories in Eclipse [message #1786813 is a reply to message #1770120] Sat, 12 May 2018 18:18 Go to previous message
Eclipse UserFriend
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: Tue Jul 15 19:34:18 EDT 2025

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

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

Back to the top