update README
This commit is contained in:
parent
79ab269fe6
commit
0b555a668d
1 changed files with 63 additions and 52 deletions
61
README.org
61
README.org
|
|
@ -9,7 +9,7 @@ It was inspired by [[https://wiki.ros.org/wstool][wstool]], [[https://github.com
|
|||
|
||||
* Usage
|
||||
|
||||
#+begin_example
|
||||
#+begin_example
|
||||
Usage: gis [OPTIONS] [COMMAND]
|
||||
|
||||
Show a status summary of all Git repositories which are found recursively in
|
||||
|
|
@ -29,43 +29,54 @@ It was inspired by [[https://wiki.ros.org/wstool][wstool]], [[https://github.com
|
|||
-j, --jobs N Limit 'fetch' and 'pull' commands to N parallel jobs
|
||||
-p, --path PATH Use PATH for searching Git repositories
|
||||
-h, --help Show this help message and exit
|
||||
#+end_example
|
||||
#+end_example
|
||||
|
||||
* Dependencies
|
||||
|
||||
- At least Bash =v4=
|
||||
- BSD =column=
|
||||
- Git
|
||||
- At least Bash =v4=
|
||||
- BSD =column=
|
||||
- Git
|
||||
|
||||
* Installation
|
||||
|
||||
** Manual
|
||||
|
||||
Place the =gis= script in your =$PATH=.
|
||||
To use the autocompletion feature source the =gis_completion.bash= script.
|
||||
Place the =gis= script in your =$PATH=.
|
||||
To use the autocompletion feature source the =gis_completion.bash= script.
|
||||
|
||||
On ZSH additionally the =compinit= and =bashcompinit= modules must be loaded before sourcing the completion script:
|
||||
*** ZSH
|
||||
|
||||
#+begin_src sh
|
||||
On ZSH additionally the =compinit= and =bashcompinit= modules must be loaded before sourcing the completion script:
|
||||
|
||||
#+begin_src sh
|
||||
autoload -U +X compinit && compinit
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
#+end_src
|
||||
#+end_src
|
||||
|
||||
** Scripts
|
||||
|
||||
Installation scripts for Bash (=install.bash=) and ZSH (=install.zsh=) are provided which will link the two files to =~/.local/{bin/gis,share/bash-completion/completions/gis}= and add the corresponding entries to =~/.bashrc= or =~/.zshrc=.
|
||||
Further updates of /gis/ require just =git pull=.
|
||||
Installation scripts for Bash (=install.bash=) and ZSH (=install.zsh=) are provided which will link the two files from the current repository to =~/.local/{bin/gis,share/bash-completion/completions/gis}= and add the corresponding entries to =~/.bashrc= or =~/.zshrc=.
|
||||
Further updates of /gis/ require just =git pull= in the /gis/ repository.
|
||||
|
||||
** Nix Flake
|
||||
|
||||
This repository is also a [[https://nixos.wiki/wiki/Flakes][Nix Flake]].
|
||||
/gis/ is provided as package under =github:Deleh/gis#gis=.
|
||||
This repository is also a [[https://nixos.wiki/wiki/Flakes][Nix Flake]].
|
||||
/gis/ is provided as package under =github:Deleh/gis#gis=.
|
||||
|
||||
* Configuration
|
||||
|
||||
The default behavior can be adjusted with the following environment variables:
|
||||
|
||||
| Variable | Description | Example Value |
|
||||
|------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------|
|
||||
| =GIS_PATH= | Colon seperated list of paths. If set, they will be used as default search paths instead of the current work directory. Can be overwritten with the =--path= argument. | =$HOME/git:$HOME/code= |
|
||||
| =GIS_JOBS= | Limit for the number of parallel =fetch= and =pull= jobs. | =10= |
|
||||
|
||||
* Syntax
|
||||
|
||||
** Status Keys
|
||||
|
||||
#+begin_example
|
||||
#+begin_example
|
||||
$ - Dirty stash
|
||||
? - Untracked files
|
||||
! - Local changes
|
||||
|
|
@ -77,19 +88,19 @@ It was inspired by [[https://wiki.ros.org/wstool][wstool]], [[https://github.com
|
|||
⇡ - Ahead upstream
|
||||
⇣ - Behind upstream
|
||||
✗ - Upstream gone
|
||||
#+end_example
|
||||
#+end_example
|
||||
|
||||
** Branches
|
||||
|
||||
Branches which don't have the same name as the =origin/HEAD= reference are highlighted in yellow.
|
||||
You can manually check on which branch you working tree is on by executing the following command:
|
||||
: git symbolic-ref refs/remotes/origin/HEAD
|
||||
Branches which don't have the same name as the =origin/HEAD= reference are highlighted in yellow.
|
||||
You can manually check on which branch you working tree is on by executing the following command:
|
||||
: git symbolic-ref refs/remotes/origin/HEAD
|
||||
|
||||
Note, that the reference gets only set when the repository is initially cloned and doesn't update with =git fetch=.
|
||||
It can be updated like this:
|
||||
: git remote set-head origin -a
|
||||
Note, that the reference gets only set when the repository is initially cloned and doesn't update with =git fetch=.
|
||||
It can be updated like this:
|
||||
: git remote set-head origin -a
|
||||
|
||||
Or set it manually to any branch with:
|
||||
: git remote set-head origin <branch_name>
|
||||
Or set it manually to any branch with:
|
||||
: git remote set-head origin <branch_name>
|
||||
|
||||
The number of additional local branches which are neither checked out, nor the =origin/HEAD= branch, is appended at the end of the branch output, e.g. =(+8)=.
|
||||
The number of additional local branches which are neither checked out, nor the =origin/HEAD= branch, is appended at the end of the branch output, e.g. =(+8)=.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue