From: Thorsten Glaser Date: Wed, 7 May 2014 08:20:32 +0000 (+0200) Subject: Display full paths in list-tracked* X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/2922b986609a4ab6c455f7d91d68e4a6830cad38?ds=sidebyside;hp=-c Display full paths in list-tracked* Closes https://github.com/RichiH/vcsh/issues/125 Signed-off-by: Thorsten Glaser --- 2922b986609a4ab6c455f7d91d68e4a6830cad38 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() {