X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/9cf8f5c46b230abd912657aeac276e4a2ce38ce0..9d67671f8cdb7786fe833c665e016d02dbe3ce31:/vcsh diff --git a/vcsh b/vcsh index ff256da..9a5d5e0 100755 --- a/vcsh +++ b/vcsh @@ -264,7 +264,7 @@ list_tracked_helper() { } list_tracked_by() { - list_tracked $2 + list_tracked '' $2 } list_untracked() { @@ -426,9 +426,7 @@ use() { which() { output=$(for VCSH_REPO_NAME in $(list); do - for VCSH_FILE in $(get_files); do - echo "$VCSH_FILE" | grep -q "$VCSH_COMMAND_PARAMETER" && echo "$VCSH_REPO_NAME: $VCSH_FILE" - done + get_files | grep -- "$VCSH_COMMAND_PARAMETER" | sed "s/^/$VCSH_REPO_NAME: /" done | sort -u) if [ -z "$output" ]; then fatal "'$VCSH_COMMAND_PARAMETER' does not exist" 1