Closed jmurty closed 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.
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?
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.
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:
git transcrypt
within a repo you are guaranteed to be running the appropriate version of the script, even if the system's version has changed