Skip to content

Commit

Permalink
Minor tweaks/fixes on error display for git stree forget when passed …
Browse files Browse the repository at this point in the history
…an arg
  • Loading branch information
tdd committed Apr 26, 2015
1 parent 378b1eb commit 6bdeb2a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions git-stree
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,15 @@ function error
function forget_subtrees
{
if [ -n "${args[1]}" ]; then
error false "This is not the command you're looking for.
git stree forget removes all subtrees defined for this repository.
You specified a specific subtree ($1) on the command line,
so you probably want: git stree rm $1
"
error false "This is not the command you're looking for.
git stree forget removes all subtrees defined for this repository. You
specified a specific subtree (${args[1]}) on the command line, so you probably
want:
git stree rm ${args[1]}"
fi

for name in $(get_subtree_list simple); do
rm_subtree "$name" && discreet "• Removed subtree '$name'"
done
Expand Down

0 comments on commit 6bdeb2a

Please sign in to comment.