author | Jeff King <peff@peff.net> | |
Thu, 27 Jan 2011 00:27:11 +0000 (19:27 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Jan 2011 01:27:02 +0000 (17:27 -0800) | ||
commit | 4ac5356c62d02b118c49cd85f88c7e6f65590400 | |
tree | 6ed2a40995334d73d39f0a23fed0efc8c3b6a701 | tree | snapshot |
parent | 3b21a438c99b38c772247201d30b7ee80b278463 | commit | diff |
rebase: give a better error message for bogus branch
When you give a non-existent branch to git-rebase, it spits
out the usage. This can be confusing, since you may
understand the usage just fine, but simply have made a
mistake in the branch name.
Before:
$ git rebase origin bogus
Usage: git rebase ...
After:
$ git rebase origin bogus
fatal: no such branch: bogus
Usage: git rebase ...
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When you give a non-existent branch to git-rebase, it spits
out the usage. This can be confusing, since you may
understand the usage just fine, but simply have made a
mistake in the branch name.
Before:
$ git rebase origin bogus
Usage: git rebase ...
After:
$ git rebase origin bogus
fatal: no such branch: bogus
Usage: git rebase ...
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh | diff | blob | history |