]> git.madduck.net Git - code/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Display full paths in list-tracked*
authorThorsten Glaser <tg@mirbsd.org>
Wed, 7 May 2014 08:20:32 +0000 (10:20 +0200)
committerThorsten Glaser <tg@mirbsd.org>
Wed, 7 May 2014 10:21:45 +0000 (12:21 +0200)
Closes https://github.com/RichiH/vcsh/issues/125

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
vcsh

diff --git a/vcsh b/vcsh
index 355e9fa7baa3da8d09e09be73ec2cd5bb22c7423..19dfa05bb3778613959b74e721a3fa6a81921b61 100755 (executable)
--- a/vcsh
+++ b/vcsh
@@ -244,12 +244,14 @@ get_files() {
 list_tracked() {
        for VCSH_REPO_NAME in $(list); do
                get_files
-       done | sort -u
+       done | sed "s,^,$(printf '%s\n' "$VCSH_BASE/" | \
+           sed 's/[,\&]/\\&/g')," | sort -u
 }
 
 list_tracked_by() {
        use
-       git ls-files | sort -u
+       git ls-files | sed "s,^,$(printf '%s\n' "$VCSH_BASE/" | \
+           sed 's/[,\&]/\\&/g')," | sort -u
 }
 
 pull() {