Switch off git-config messages
This commit is contained in:
@@ -5,6 +5,7 @@ set -u
|
||||
ORIGIN=origin
|
||||
UPSTREAM=$ORIGIN
|
||||
MASTER=$UPSTREAM/master
|
||||
DEBUG=${DEBUG:- 0}
|
||||
|
||||
if [[ $# -gt 0 && "$1" == "-dry" ]]; then
|
||||
DRY=true
|
||||
@@ -12,8 +13,14 @@ else
|
||||
DRY=false
|
||||
fi
|
||||
|
||||
function log() {
|
||||
if (( $DEBUG )); then
|
||||
echo "$*"
|
||||
fi
|
||||
}
|
||||
|
||||
function run() {
|
||||
echo "$*"
|
||||
log "$*"
|
||||
if [[ $DRY != "true" ]]; then
|
||||
"$@"
|
||||
fi
|
||||
@@ -161,6 +168,6 @@ git_alias configs "config --list"
|
||||
#fi
|
||||
|
||||
if can_run delta; then
|
||||
echo "Activate delta"
|
||||
log "Activate delta"
|
||||
activate_delta
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user