Re: [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits.
- From
- Ingo Molnar <mingo@elte.hu>
- Date
- Jul 1, 2008, 10:14 UTC
- Message-ID
- <20080701101414.GG31309@elte.hu>
- In-Reply-To
- <80iqvq2bw0.fsf@tiny.isode.net>
* Bruce Stephens <bruce.stephens@isode.com> wrote:
Show 17 quoted lines
> Ingo Molnar <mingo@elte.hu> writes: > > > i recently switched to 1.5.6.1.89.gd5446 and i'm getting this: > > > > Switched to branch "master" > > Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits. > > > > it's a very useful detail! It's especially useful when two branches > > diverge in a non-trivial way. > > I agree, it's a really nice little feature. Indeed, I occasionally do > "git checkout master" just to get the message (to see where I am). > > It feels logical for "git status" to offer the same information (when > the information is appropriate). > > [...]
i have a tip-curr (shortcut: 'tc') scriptlet to answer the "where I am amongst 100+ branches" question:
earth4:~/tip> tc tip/master 200a86b: Merge branch 'x86/unify-setup'
which is just a thin wrapper around git-log:
earth4:~/tip> cat ~/bin/tip/tip-curr #!/bin/bash
. ~/bin/tip/tip-lib
echo "tip/"$(get_current_branch)" "$(git log -1 --pretty=format:"%h: %s")
Ingo