Corrected repository location print out and docs ws-root-directory absolute path

This commit is contained in:
Niklas Schlimm 2017-03-30 19:31:32 +02:00
parent ca62bdcfe6
commit fe39ac8af2
5 changed files with 7 additions and 6 deletions

View file

@ -252,7 +252,7 @@ usage: git bulk [-g] ([-a]|[-w <ws-name>]) <git command>
git bulk --listall
```
Register a workspace so that `git bulk` knows about it:
Register a workspace so that `git bulk` knows about it (notice that <ws-root-directory> must be absolute path):
```bash
$ git bulk --addworkspace personal ~/workspaces/personal

View file

@ -113,7 +113,8 @@ function executBulkOp () {
local gitrepodir=${line::${#line}-5} # cut the .git part of find results to have the root git directory of that repository
eval cd "\"$gitrepodir\"" # into git repo location
local curdir=$(pwd)
echo "Current repository: ${actual#${curdir%/*}}/${bldred}${curdir##*/}${reset}"
local leadingpath=${curdir#${actual}}
echo "Current repository: ${leadingpath%/*}/${bldred}${curdir##*/}${reset}"
guardedExecution
eval cd "\"$rwsdir\"" # back to origin location of last find command
done

View file

@ -51,7 +51,7 @@ Any git Command you wish to execute on the repositories\.
\-\-addworkspace <ws\-name> <ws\-root\-directory>
.
.P
Register a workspace for bulk operations\. All repositories in the diretories below <ws\-root\-directory> get registered under this workspace with the name <ws\-name>\.
Register a workspace for bulk operations\. All repositories in the diretories below <ws\-root\-directory> get registered under this workspace with the name <ws\-name>\. <ws\-root\-directory> must be absultue path\.
.
.P
\-\-removeworkspace <ws\-name>

View file

@ -114,7 +114,7 @@
<p> --addworkspace &lt;ws-name&gt; &lt;ws-root-directory&gt;</p>
<p> Register a workspace for bulk operations. All repositories in the diretories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;.</p>
<p> Register a workspace for bulk operations. All repositories in the diretories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;. &lt;ws-root-directory&gt; must be absultue path.</p>
<p> --removeworkspace &lt;ws-name&gt;</p>
@ -169,7 +169,7 @@ $ git bulk --purge
<h2 id="AUTHOR">AUTHOR</h2>
<p>Written by Niklas Schlimm &lt;<a href="&#109;&#97;&#105;&#x6c;&#116;&#111;&#58;&#x6e;&#x73;&#49;&#48;&#x33;&#64;&#x68;&#x6f;&#x74;&#109;&#97;&#105;&#108;&#x2e;&#x64;&#x65;" data-bare-link="true">&#x6e;&#x73;&#x31;&#x30;&#x33;&#x40;&#x68;&#x6f;&#116;&#x6d;&#x61;&#x69;&#x6c;&#x2e;&#x64;&#101;</a>&gt;</p>
<p>Written by Niklas Schlimm &lt;<a href="&#x6d;&#97;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x6e;&#x73;&#x31;&#48;&#x33;&#x40;&#104;&#111;&#x74;&#109;&#x61;&#105;&#x6c;&#x2e;&#100;&#x65;" data-bare-link="true">&#x6e;&#115;&#49;&#x30;&#51;&#x40;&#104;&#111;&#116;&#109;&#x61;&#105;&#x6c;&#46;&#100;&#x65;</a>&gt;</p>
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>

View file

@ -38,7 +38,7 @@ git bulk adds convenien support for operations that you want to execute on multi
--addworkspace &lt;ws-name&gt; &lt;ws-root-directory&gt;
Register a workspace for bulk operations. All repositories in the diretories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;.
Register a workspace for bulk operations. All repositories in the diretories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;. &lt;ws-root-directory&gt; must be absultue path.
--removeworkspace &lt;ws-name&gt;