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