Re: [RFC] git subcommand to check if branch is up-to-date with upstream

2016-07-26 Thread Sidhant Sharma
On Monday 25 July 2016 11:03 PM, Jakub Narębski wrote: > W dniu 2016-07-25 o 18:58, Junio C Hamano pisze: >> Sidhant Sharma writes: >> >>> I was wondering if it would be a good idea to have a command to check if a >>> push or pull is required. Perhaps it can also suggest if changes are >>> fast-fo

Re: [RFC] git subcommand to check if branch is up-to-date with upstream

2016-07-25 Thread Jakub Narębski
W dniu 2016-07-25 o 18:58, Junio C Hamano pisze: > Sidhant Sharma writes: > >> I was wondering if it would be a good idea to have a command to check if a >> push or pull is required. Perhaps it can also suggest if changes are >> fast-forward or the branches (local and remote) have diverged. > >

Re: [RFC] git subcommand to check if branch is up-to-date with upstream

2016-07-25 Thread Junio C Hamano
Sidhant Sharma writes: > I was wondering if it would be a good idea to have a command to check if a > push or pull is required. Perhaps it can also suggest if changes are > fast-forward or the branches (local and remote) have diverged. Doesn't "branch -v" give that information these days? You'd

[RFC] git subcommand to check if branch is up-to-date with upstream

2016-07-25 Thread Sidhant Sharma
Hi, I was wondering if it would be a good idea to have a command to check if a push or pull is required. Perhaps it can also suggest if changes are fast-forward or the branches (local and remote) have diverged. The reason I feel the need of such a command is when I need to check if my branch is up-