From 53311ba2f69d55b2148866c40148dbbfaee8c761 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Wed, 7 May 2014 10:20:32 +0200 Subject: [PATCH] Display full paths in list-tracked* Closes https://github.com/RichiH/vcsh/issues/125 Signed-off-by: Thorsten Glaser --- vcsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vcsh b/vcsh index e07cffb..e8513ed 100755 --- 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() { -- 2.39.5