elasticdog / transcrypt

transparently encrypt files within a git repository
MIT License
1.48k stars 104 forks source link

WIP: Install transcrypt script into repo #112

Closed jmurty closed 3 years ago

jmurty commented 3 years ago

When initializing transcrypt, copy the whole script file into the repository and make it runnable with the git transcrypt alias.

This approach gives a number of benefits:

jmurty commented 3 years ago

Hi @elasticdog what do you think about this approach of copying the entire transcrypt file into a repo on initialisation?

I was inspired by an idea from someone else's suggestion in an issue or PR from ages ago, I can't find the reference right now to give credit. But I think it's a good idea.

jmurty commented 3 years ago

Could we avoid user confusion by copying the script into the crypt dir to use internally, without creating the Git alias or telling the user?

jmurty commented 3 years ago

I have removed the git transcrypt alias, so the fact the original transcrypt script is copied into the repo's crypt/ directory is now hidden from the user: and internal implementation detail they don't need to know or care about.