From: Petr Baudis Date: Wed, 18 Mar 2009 18:26:03 GMT Subject: Re: Git {log,diff} against tracked branch? Message-ID: <20090318182603.GM8940@machine.or.cz> In-Reply-To: <200903181448.50706.agruen@suse.de> Hi, On Wed, Mar 18, 2009 at 02:48:50PM +0100, Andreas Gruenbacher wrote: > I often want to see what the differences are between a local branch and the > branch it tracks (if it tracks a branch). I currently do something like "git > log master..origin/master". This is a lot of unnecessary typing though > compared to something like "git log -t master", or even "git log -t" when on > the master branch. sorry, I think Git can't do anything like this either. :-( However, I think something like this would be useful and probably easy to do? Maybe someone on the list will get inspired to implement a special refspec character to represent the "tracked branch" relationship, so e.g. %master would expand to %origin/master. Then you should be able to do something like: git log %.. -- Petr "Pasky" Baudis The average, healthy, well-adjusted adult gets up at seven-thirty in the morning feeling just terrible. -- Jean Kerr