On Wed, Oct 10, 2018 at 4:58 AM Simon Michael <[email protected]> wrote:

> Committing encrypted files gives up readable history, diffs etc., but
> that's the tradeoff.

No, it doesn’t. The Pass[1] password manager stores passwords as
GPG-encrypted text files in a Git repository, and it registers a diff
driver for such files so you get readable diffs.

[1]: https://www.passwordstore.org/

It’s not terribly complicated either:

* The .gitattributes file in the root of repository contains the line
“*.gpg diff=gpg”.
* .git/config contains a section:

    [diff "gpg"]
        binary = true
        textconv = gpg2 -d --quiet --yes --compress-algo=none
--no-encrypt-to --batch --use-agent

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to