From fe39ac8af2cba9b680a88702590b05816bb9b2e1 Mon Sep 17 00:00:00 2001 From: Niklas Schlimm Date: Thu, 30 Mar 2017 19:31:32 +0200 Subject: [PATCH] Corrected repository location print out and docs ws-root-directory absolute path --- Commands.md | 2 +- bin/git-bulk | 3 ++- man/git-bulk.1 | 2 +- man/git-bulk.html | 4 ++-- man/git-bulk.md | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Commands.md b/Commands.md index 419525d..8c9f2b8 100644 --- a/Commands.md +++ b/Commands.md @@ -252,7 +252,7 @@ usage: git bulk [-g] ([-a]|[-w ]) 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 must be absolute path): ```bash $ git bulk --addworkspace personal ~/workspaces/personal diff --git a/bin/git-bulk b/bin/git-bulk index 692b62a..431a379 100755 --- a/bin/git-bulk +++ b/bin/git-bulk @@ -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 diff --git a/man/git-bulk.1 b/man/git-bulk.1 index a4d2f8d..a124567 100644 --- a/man/git-bulk.1 +++ b/man/git-bulk.1 @@ -51,7 +51,7 @@ Any git Command you wish to execute on the repositories\. \-\-addworkspace . .P -Register a workspace for bulk operations\. All repositories in the diretories below get registered under this workspace with the name \. +Register a workspace for bulk operations\. All repositories in the diretories below get registered under this workspace with the name \. must be absultue path\. . .P \-\-removeworkspace diff --git a/man/git-bulk.html b/man/git-bulk.html index a5ac5ca..3a5b04a 100644 --- a/man/git-bulk.html +++ b/man/git-bulk.html @@ -114,7 +114,7 @@

--addworkspace <ws-name> <ws-root-directory>

-

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.

--removeworkspace <ws-name>

@@ -169,7 +169,7 @@ $ git bulk --purge

AUTHOR

-

Written by Niklas Schlimm <ns103@hotmail.de>

+

Written by Niklas Schlimm <ns103@hotmail.de>

REPORTING BUGS

diff --git a/man/git-bulk.md b/man/git-bulk.md index 5b61feb..0d496f9 100644 --- a/man/git-bulk.md +++ b/man/git-bulk.md @@ -38,7 +38,7 @@ git bulk adds convenien support for operations that you want to execute on multi --addworkspace <ws-name> <ws-root-directory> - 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. --removeworkspace <ws-name>