summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-08-27 23:41:47 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-08-27 23:42:18 -0500
commitb216943255ec64463b62da9f34cae4278957cc6d (patch)
tree8ba0d8215fe5c92db1ae298f920349c36b683dcd /g
parent71e5200756bb73f69a4951ea89f85824edfdd31d (diff)
add ./g -z to just refresh the hooks and possibly other housekeeping
Diffstat (limited to 'g')
-rwxr-xr-xg15
1 files changed, 10 insertions, 5 deletions
diff --git a/g b/g
index 62447647e354..b66c4768a78a 100755
--- a/g
+++ b/g
@@ -13,6 +13,7 @@ if [ "$#" -eq "0" ] ; then
echo " -f Force - act on all the repos, not only the changed ones"
echo " -s Silent - do not report the repo names."
echo " -1 report the repos name on the first line of the output as <repo>:"
+ echo " -z just to some house cleaning (hooks mostly). this is a stand-alone option as in ./g -z"
echo " --set-push-user [username] re-write an existing tree's config with an fd.o commit account name"
exit $?
fi
@@ -112,12 +113,16 @@ while [ "${COMMAND:0:1}" = "-" ] ; do
;;
-s) REPORT_REPOS=0
;;
- -1) REPORT_COMPACT=1
+ -1) REPORT_COMPACT=1
;;
- --set-push-user)
- shift
- PUSH_USER="$1"
- ;;
+ --set-push-user)
+ shift
+ PUSH_USER="$1"
+ ;;
+ -z)
+ DO_HOOK_REFRESH=true
+ postprocess 0
+ ;;
esac
shift
COMMAND="$1"