From f30ce6374d554e704162d5fa8e49acd9c6fd0ecc Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Sat, 26 Apr 2014 12:25:13 +0200 Subject: Mute git-commit messages to make pass insert readable `pass generate' prints 10 lines of output, with only 2 related to the operation at hand: % pass generate xyz 1 2 You need a passphrase to unlock the secret key for 3 user: USER 4 4096-bit RSA key, ID XYZ, created 1234-56-78 5 6 [master 12345] Added generated password for xyz to store. 7 1 file changed, 0 insertions(+), 0 deletions(-) 8 create mode 100644 xyz.gpg 9 The generated password to xyz is: 10 Some password 123 % This patch takes care of 3 of 8 noise lines. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index ad22833..8e80798 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -32,7 +32,7 @@ git_commit() { local sign="" [[ -d $GIT_DIR ]] || return [[ $(git config --bool --get pass.signcommits) == "true" ]] && sign="-S" - git commit $sign -m "$1" + git commit -q $sign -m "$1" } yesno() { [[ -t 0 ]] || return 0 -- cgit v1.2.3