Code

Introduce <branch>@{upstream} notation
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 10 Sep 2009 15:25:57 +0000 (17:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 22:00:58 +0000 (14:00 -0800)
commit28fb84382b0eb728534dbe2972bbfec3f3d83dd9
treea5e6d66ede6c4ec79a8bd9316077a2d443488848
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae
Introduce <branch>@{upstream} notation

A new notation '<branch>@{upstream}' refers to the branch <branch> is set
to build on top of.  Missing <branch> (i.e. '@{upstream}') defaults to the
current branch.

This allows you to run, for example,

for l in list of local branches
do
git log --oneline --left-right $l...$l@{upstream}
done

to inspect each of the local branches you are interested in for the
divergence from its upstream.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
sha1_name.c
t/t1506-rev-parse-upstream.sh [new file with mode: 0755]