Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to have diff's work inside git clients, such as Sublime Merge? #163

Closed
othyn opened this issue Apr 6, 2023 · 3 comments

Comments

@othyn
Copy link

othyn commented Apr 6, 2023

I love this project, thank you for making it.

A gap in my knowledge on how this part of git works, but I'm wondering if I'm missing something and there is the ability to have diffs continue to function when inside git clients such as Sublime Merge?

As at the moment when viewing files in such git clients, the diff presented is that of the encrypted version of the file, instead of the decrypted one.

Not sure if this use case has come up yet!

@othyn
Copy link
Author

othyn commented Apr 6, 2023

Apologies! Appears this is a bug in Sublime Merge after looking further into it:

sublimehq/sublime_merge#568

@jmurty
Copy link
Collaborator

jmurty commented Apr 6, 2023

Yeah, diffs should just work in clients that apply the .gitattributes directives. It's a shame your preferred client doesn't.

You will need to find another client to diff and merge transcrypt-encrypted files.

You should also be wary of committing secret files with that tool because it probably won't actually encrypt the contents. Transcrypt installs a pre-commit hook to try and prevent you committing and accidentally sharing files you thought would be encrypted but actually aren't, but I wouldn't recommend relying on it completely.

@othyn
Copy link
Author

othyn commented Apr 6, 2023

Yeah, diffs should just work in clients that apply the .gitattributes directives. It's a shame your preferred client doesn't.

You will need to find another client to diff and merge transcrypt-encrypted files.

Appears to be the way! A shame as its a good client otherwise.

You should also be wary of committing secret files with that tool because it probably won't actually encrypt the contents. Transcrypt installs a pre-commit hook to try and prevent you committing and accidentally sharing files you thought would be encrypted but actually aren't, but I wouldn't recommend relying on it completely.

It does respect the pre-commit hooks and stops exec if transcrypt fails or throws an error such as that, I've tested to make sure on that one! So we're all good there.

@jmurty jmurty closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants