builtin rebase: optionally auto-detect the upstream
authorPratik Karki <predatoramigo@gmail.com>
Wed, 8 Aug 2018 15:36:30 +0000 (21:21 +0545)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Oct 2018 05:16:05 +0000 (14:16 +0900)
commit8f5986d95a9154d2ecbc4dd16b893380875cc83d
tree0e131cf74b621a33501e85cb8e3239b45c24b1ce
parent9dba809a69a7cd2a60e73d1ccaea0812b72b2b79
builtin rebase: optionally auto-detect the upstream

The `git rebase` command, when called without the `<upstream>`
command-line argument, automatically looks for the upstream
branch configured for the current branch.

With this commit, the builtin rebase learned that trick, too.

Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c