From 3f8484b12abb5a21f1e16d51405770b37e56c0b7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 7 Nov 2026 17:26:36 +0300 Subject: [PATCH] added docs... Signed-off-by: Alex A. Naanou --- bin/git-pullall | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/git-pullall b/bin/git-pullall index 03cadbe..d6ec42f 100755 --- a/bin/git-pullall +++ b/bin/git-pullall @@ -1,5 +1,9 @@ #!/usr/bin/env bash + +SKIP_FILE=${SKIP_FILE:-.pullall-skip} + + while true ; do case $1 in -h|--help) @@ -10,6 +14,13 @@ while true ; do echo "Options:" echo " -h --help - print this message and exit" echo " -r --recursive - pull directories recursively" + if ! [ -z $SKIP_FILE ] ; then + echo + echo "If $SKIP_FILE is present in the repository root directry" + echo "the repository will not get pulled." + #echo "To disable this behavior set \$SKIP_FILE to empty, e.g:" + #echo " SKIP_FILE= git pullall -r" + fi echo exit ;; @@ -56,7 +67,8 @@ wd=$(pwd) for dir in "${DIRS[@]}" ; do dir="${dir%.git}" echo "$dir" - if [ -e "$dir/.pullall-skip" ] ; then + if ! [ -z $SKIP_FILE ] \ + && [ -e "$dir/$SKIP_FILE" ] ; then echo "skipping..." echo continue