chiark / gitweb /
README: Add synopsis for working with remotes
[topgit.git] / tg-create.sh
index dd95e6596876d38e1357435267c46f67783ebbe0..fee7dff3ee9fdf5d1e29c31282cf73abdc9f7067 100644 (file)
@@ -15,7 +15,7 @@ while [ -n "$1" ]; do
        arg="$1"; shift
        case "$arg" in
        -*)
-               echo "Usage: tg create NAME [DEPS...]" >&2
+               echo "Usage: tg [...] create NAME [DEPS...]" >&2
                exit 1;;
        *)
                if [ -z "$name" ]; then
@@ -82,7 +82,7 @@ while [ -n "$merge" ]; do
        info "Merging $name base with $branch..."
 
        if ! git merge "$branch"; then
-               info "Please commit merge resolution and call: tg create"
+               info "Please commit merge resolution and call: $tg create"
                info "It is also safe to abort this operation using:"
                info "git reset --hard some_branch"
                info "(You are on a detached HEAD now.)"
@@ -123,4 +123,4 @@ git add -f "$root_dir/.topmsg"
 
 
 info "Topic branch $name set up. Please fill .topmsg now and make initial commit."
-info "To abort: git rm -f .top* && git checkout ${deps%% *} && tg delete $name"
+info "To abort: git rm -f .top* && git checkout ${deps%% *} && $tg delete $name"