[pass] Idiomatic way to view previous password version ?

Jean-Baptiste Denis jbd at jbdenis.net
Fri Jun 12 09:25:54 CEST 2015


> pass git log -p test/root.gpg

For this command to work (in the pass version I'm using anyway (v1.6.5 from
debian testing) you have to be in your ~/.password-store directory which is not

> It will show you the changes in the file test/root.gpg for each commit
> that affects that file. In case you don't know the diff format, the
> lines started with a "-" are lines that are removed and the one started
> with "+" are the ones that are added. For example

> -my_old_password
> +my_new_password

> indicates that the files used to contain my_old_password, but the
> current commit changed it to my_new_password

Unless I didn't understand something in your answer, since test/root.gpg is a
binary file, the diff won't help here. Hence my post to this mailing list for
something easiest to use. Is the diff working in clear-text on your installation ?

$ pass git log -p test/root.gpg
commit a5b04e235cfaad445d6fbf597eeec050548911bd
Author: Jean-Baptiste Denis <jbd at example.com>
Date:   Thu Jun 11 18:51:10 2015 +0200

    Add generated password for test/root.

diff --git a/test/root.gpg b/test/root.gpg
index e93eb8c..fdfa73f 100644
Binary files a/test/root.gpg and b/test/root.gpg differ

Thank you !


More information about the Password-Store mailing list