Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/util.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util.inc.sh')
-rw-r--r--util.inc.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.inc.sh b/util.inc.sh
index c33cb63..ddd7592 100644
--- a/util.inc.sh
+++ b/util.inc.sh
@@ -36,3 +36,11 @@ in_array() {
return 1
}
+
+quiet_git() {
+ local q
+
+ [[ $ASP_GIT_QUIET ]] && q=('-q')
+
+ command git "$1" "${q[@]}" "${@:2}"
+}