if you're using git there should* be a commit added for each change. type 'pass git log' to verify if there are two entries for 'foo' (i.e. "Edit password for foo using vim."), and if that's the case, undo the latest commit with 'pass git revert HEAD~1'.
lg

* famous last words


On Tue, Jan 15, 2019 at 03:26:52PM -0500, Joshua N Pritikin wrote:
To create a new password entry for "foo," I typed "pass edit foo" in one
terminal window. Then I forgot and entered the same thing in another
terminal window. I closed them in the wrong order and wiped out my
changes.

At the beginning of "pass edit foo", would it be possible to snapshot
the previous version of the file? Then if the file didn't match it's
snapshot, the user could be warned.

Maybe there is a race condition here, but better to have a safety check
that usually works than no safety check.

--
Joshua N. Pritikin, Ph.D.
Virginia Institute for Psychiatric and Behavioral Genetics
Virginia Commonwealth University
PO Box 980126
800 E Leigh St, Biotech One, Suite 1-133
Richmond, VA 23219
http://exuberant-island.surge.sh
_______________________________________________
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store
_______________________________________________
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to