mirror of
https://github.com/flynx/git-utils.git
synced 2025-12-25 12:52:05 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9db7680605
commit
c2da2b01b4
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
|
|
||||||
while true ; do
|
while true ; do
|
||||||
@ -20,7 +21,7 @@ while true ; do
|
|||||||
echo "or recursively:"
|
echo "or recursively:"
|
||||||
echo " $ git listall -r > reposiotry.lst"
|
echo " $ git listall -r > reposiotry.lst"
|
||||||
echo
|
echo
|
||||||
echo "If a repository list already exists it can be expanded via:"
|
echo "If a repository list already exists it can be updated via:"
|
||||||
echo " $ git listall -r reposiotry.lst >> reposiotry.lst"
|
echo " $ git listall -r reposiotry.lst >> reposiotry.lst"
|
||||||
echo
|
echo
|
||||||
echo "For info on list file format see:"
|
echo "For info on list file format see:"
|
||||||
@ -41,6 +42,12 @@ while true ; do
|
|||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-u|--update)
|
||||||
|
REPOS_FILE=$2
|
||||||
|
shift 2
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
|
||||||
-*|--*)
|
-*|--*)
|
||||||
echo "Error: unknown option: \"$1\"" >&2
|
echo "Error: unknown option: \"$1\"" >&2
|
||||||
exit
|
exit
|
||||||
@ -73,6 +80,10 @@ else
|
|||||||
REPOS=(./*/.git/config)
|
REPOS=(./*/.git/config)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e "$LIST" ] ; then
|
||||||
|
echo
|
||||||
|
echo "# $(date)"
|
||||||
|
fi
|
||||||
# format and print unique lines...
|
# format and print unique lines...
|
||||||
lines=()
|
lines=()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user