Files
git/Documentation
Martin von Zweigbergk 15a147e618 rebase: use @{upstream} if no upstream specified
'git rebase' without arguments is currently not supported. Make it
default to 'git rebase @{upstream}'. That is also what 'git pull
[--rebase]' defaults to, so it only makes sense that 'git rebase'
defaults to the same thing.

Defaulting to @{upstream} will make it possible to run e.g. 'git
rebase -i' without arguments, which is probably a quite common use
case. It also improves the scenario where you have multiple branches
that rebase against a remote-tracking branch, where you currently have
to choose between the extra network delay of 'git pull' or the
slightly awkward keys to enter 'git rebase @{u}'.

The error reporting when no upstream is configured for the current
branch or when no branch is checked out is reused from git-pull.sh. A
function is extracted into git-parse-remote.sh for this purpose.

Helped-by: Yann Dirson <ydirson@altern.org>
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-02-10 14:45:25 -08:00
..
2009-10-01 08:21:35 -04:00
2011-01-30 19:02:37 -08:00
2011-01-04 11:23:42 -08:00
2009-04-06 00:27:09 -07:00
2011-01-04 11:23:42 -08:00
2011-01-04 11:23:42 -08:00
2010-07-20 16:52:53 -07:00
2010-12-16 16:36:03 -08:00
2010-10-13 20:20:09 -07:00
2010-12-19 17:49:42 -08:00
2008-08-01 23:21:44 -07:00
2010-12-08 11:24:12 -08:00
2010-12-07 13:13:21 -08:00
2010-12-10 16:36:53 -08:00
2010-11-09 09:42:57 -08:00
2010-02-14 18:23:16 -08:00
2011-01-30 19:02:37 -08:00
2011-01-04 11:23:42 -08:00
2010-07-05 13:39:02 -07:00
2010-11-24 15:13:58 -08:00
2010-07-20 16:59:17 -07:00