Create a git_do command to log git actions
diff --git a/gitflow-common b/gitflow-common
index 4834cf1..3327405 100644
--- a/gitflow-common
+++ b/gitflow-common
@@ -70,6 +70,14 @@
# Git specific common functionality
#
+git_do() {
+ # equivalent to git, used to indicate actions that make modifications
+ if flag show_commands; then
+ echo "git $@" >&2
+ fi
+ git "$@"
+}
+
git_local_branches() { git branch --no-color | sed 's/^[* ] //'; }
git_remote_branches() { git branch -r --no-color | sed 's/^[* ] //'; }
git_all_branches() { ( git branch --no-color; git branch -r --no-color) | sed 's/^[* ] //'; }