From 875bb10bd261596c43976e67d0660c803ef82301 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 18 Aug 2014 16:45:21 -0400 Subject: Make rfc.sh show what its actually doing Change-Id: Ifb9246a2680e5f985871d4209b46dd803979c2e1 BUG: 1131275 Signed-off-by: Patrick Uiterwijk Reviewed-on: http://review.gluster.org/8496 Reviewed-by: Niels de Vos Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Kaleb KEITHLEY --- rfc.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'rfc.sh') diff --git a/rfc.sh b/rfc.sh index 287768eae8b..5da88b651b1 100755 --- a/rfc.sh +++ b/rfc.sh @@ -4,6 +4,19 @@ # i.e. where we are interested in the result of a command, # we have to run the command in an if-statement. + +while getopts "v" opt; do + case $opt in + v) + # Verbose mode + function git () { >&2 echo "git $@" && `which git` $@; } + ;; + esac +done +# Move the positional arguments to the beginning +shift $((OPTIND-1)) + + branch="master"; set_hooks_commit_msg() -- cgit