Open soraxas opened 2 years ago
Hi @soraxas this looks like a great feature!
Thanks also for cleaning up the git-common-dir
vs git-dir
logic. I have pushed some minor changes to get shellcheck
and shfmt
linting checks to pass.
@elasticdog What do you think of this approach and transcrypt add
/ git add-crypt
command names?
This PR adds a convenient command that quickly adds file/patterns to .gitattribute. The command is available as git alias too (similar to git ls-crypt)
The command also checks if the given file/pattern already exists in the file, and it will be a no-op if the line already exists.