streamline usage with git

This commit is contained in:
Denis Lehmann 2023-09-26 12:49:50 +02:00
parent ee7898c5ee
commit 03818ff10e
2 changed files with 49 additions and 27 deletions

View file

@ -10,17 +10,19 @@ It was inspired by [[https://wiki.ros.org/wstool][wstool]], [[https://github.com
* Usage
#+begin_example
Usage: gis [OPTIONS] [PATHS] ...
Usage: gis [COMMANDS] [OPTIONS]
Show a status summary of all Git repositories in PATHS.
The colon-seperated environment variable $GIS_PATH is used if no PATH is given.
If the variable isn't set, the current work directory is used.
Show a status summary of all Git repositories which are found recursively in
current work directory. If the colon-separated environment variable $GIS_PATH
is set, the declared directories will be used instead.
COMMANDS
fetch Execute 'git fetch --prune --all' for all found repositories
pull Execute 'git pull' for all found repositories which are behind upstream
OPTIONS
-f, --fetch Execute 'git fetch --prune --all' for all repositories in PATHS
-p, --pull Execute 'git pull' for all repositories which are behind upstream
in PATHS
-h, --help Show this help message and exit
-p, --path PATH Use PATH for searching Git repositories
-h, --help Show this help message and exit
#+end_example
* Installation