[pass] Idiomatic way to view previous password version ?
Grégoire Détrez
gregoire at fripost.org
Sat Jun 13 12:39:49 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Le 2015-06-12 10:16, Matthieu Weber a écrit :
> On Fri 12.06.2015 at 09:25:54AM +0200, Jean-Baptiste Denis wrote:
>> Hi,
>>
>> > pass git log -p test/root.gpg
>>
>> 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 ?
>
> No, my bad, I didn't realize the diff would be binary. Stupid me :( One
> thing that could be done is a git alias that takes the commits one by
> one and decrypts them.
You can make this command work with some git magic :
echo '*.gpg diff=gpg' >> ~/.password-store/.git/info/attributes
echo '[diff "gpg"]\n textconv = gpg -d -q --batch --no-tty' >>
~/.password-store/.git/config
This basically tells git to use gpg to decrypt files before doing a diff
if the file matches the pattern *.gpg. Then the suggested command should
work:
$ pass git log -p
commit 5314005fa5cf9a7d615eeac65d92b57ee9035a15
Author: Grégoire Détrez <gregoire.detrez at gu.se>
Date: Fri Jun 12 19:45:16 2015 +0200
Added given password for foobar to store.
diff --git a/foobar.gpg b/foobar.gpg
index 247d21c..19afade 100644
--- a/foobar.gpg
+++ b/foobar.gpg
@@ -1 +1 @@
-old password
+new password
Voilà!
- --
/ǵ
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJVfAhCAAoJELlxr7tgbDQC+o0QAOQUVbD4Ty7L9As84Z8TSwwk
nQD9eqESKY7bt07agvC0dFQnWkoPh7f2ybNpCFMEAvpoAuiIyAirqmzkkHL8y4/s
36du3LxJo9jm8lnTBL2VTaczD2fbf3Fo6BhxF9hv++QNoGln4Ly9H9xcAphnord3
hBlWNMkO8CwhstQqqZBltt61PrkwwR4SpIRyB4XbkmJE75uU9vX8F5XP+3x0kng6
DocJ3W+fCR1WbdvFQgbUCfkkWkrI92NMOS77in+juMpYLyWq13mO0NwWUHciLf6P
2kYdMp9PXIPVmNInMfP2DyQvrtYfQEspEZ/5n5vElWvCXIab77K8tuDtsVckomWU
fREzCyBsfjiuBpCPXnQn815pijqc9ois4+sn1NzDfCy4tPZmdMX7qxoC5A2Hh0b1
vg1ehvHm+VkjohmctCcBU6GEA0uUUZfZV27i5sgsbGbXUukZchGir4b1dzBJ8wJj
yLL7Sh5To6JxhWZyj9C8kRnoQMiej5KGqbkR6+cjlUMsjMBx+je1hrlRXm7+z3I8
2Fey+UY1rSGweIf8K5XPxNOB7WhDP0B4/UF3OscPNQCNelM4pB47136yShrZWHBP
R6Zv2Bq5idpB7pHftQlxlhqboBOeJJi3Pz8s+U/cJ15md0o0o9zPDNcel9mf2VIG
Gpw0uMUg5CMCNTC4F4Xx
=tFcp
-----END PGP SIGNATURE-----
More information about the Password-Store
mailing list