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/53311ba2f69d55b2148866c40148dbbfaee8c761?ds=inline;hp=-c Display full paths in list-tracked* Closes https://github.com/RichiH/vcsh/issues/125 Signed-off-by: Thorsten Glaser --- 53311ba2f69d55b2148866c40148dbbfaee8c761 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() {