m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2014-04-26 12:25:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-06 16:08:09 +0200
commitf30ce6374d554e704162d5fa8e49acd9c6fd0ecc (patch)
treed59f76c47f3562557b8bfb668a5ef1657a3efcc0
parent56381287a16792b4c6410f07db68e02f3574c213 (diff)
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 <EMAIL> 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.
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
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