From 2922b986609a4ab6c455f7d91d68e4a6830cad38 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 355e9fa..19dfa05 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