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

using transcrypt on LFS files #129

Open
qmarcou opened this issue Dec 26, 2021 · 1 comment
Open

using transcrypt on LFS files #129

qmarcou opened this issue Dec 26, 2021 · 1 comment

Comments

@qmarcou
Copy link

qmarcou commented Dec 26, 2021

Hi!
First of all thanks for this great and simple tool!

I was wondering if there was a way to use transcrypt on LFS files? Upon trying to do it I realized that both LFS and transcrypt use .gitattributes, e.g trying to encrypt a file on lfs I would use:

git lfs track "mybiggfile.csv"
echo "mybigfile.csv filter=crypt diff=crypt merge=crypt"

and would obtain the following .gitattributes

mybigfile.csv filter=lfs diff=lfs merge=lfs
mybigfile.csv filter=crypt diff=crypt merge=crypt

And upon staging the file it will be encrypted but not treated as LFS file.
Is there a workaround to get both working together?
Thanks for your help!

@jmurty
Copy link
Collaborator

jmurty commented Jan 15, 2022

Hi,

I don't think there is an easy way to apply multiple filter etc options on the same file. Doing this would involve carefully chaining the two separate tools so they work together, which might be possible but would be difficult to get right.

Googling Git filter chaining returned few results, none of them very promising like https://stackoverflow.com/questions/13988619/apply-multiple-filters-for-same-files-in-git

Making Transcrypt compatible with LFS would be an interesting exercise if you want to give it a try?

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