git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Baudis <pasky@suse.cz>
To: Francois Lang <flang@mail.nih.gov>
Cc: git@vger.kernel.org
Subject: Re: qiuestion about Git and Cogito
Date: Thu, 22 Mar 2007 18:57:22 +0100	[thread overview]
Message-ID: <20070322175722.GP18276@pasky.or.cz> (raw)
In-Reply-To: <46028B45.2010802@mail.nih.gov>

On Thu, Mar 22, 2007 at 02:57:25PM CET, Francois Lang wrote:
> Interesting...for me, when I do what you suggested, i.e.,
> 
> cg-log -r master..origin
> 
> it does not tell me what has been locally committed but not yet pushed.
> 
> To get that behavior, I need to do
> 
> cg-log -r origin..master.
> 
> Does that make sense to you, or am I confused? I do work on master and 
> push to origin.

Oh, of course - I got it swapped in my head. :-)

It isn't the most intuitive syntax, admittedly, but I couldn't think of
anything better. The way to think about it is "show me the commits
that appeared between origin and master", where

	a - b - c - d - e
	 origin ^
	         master ^

thus it will show the locally committed but not yet pushed d and e. This
maps nicely to the range syntax if you think about it, but it isn't
terribly intuitive. :-(

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett

      parent reply	other threads:[~2007-03-22 17:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 15:15 qiuestion about Git and Cogito Francois Lang
2007-03-20 15:56 ` Petr Baudis
     [not found]   ` <46002BEE.5020300@mail.nih.gov>
     [not found]     ` <46028B45.2010802@mail.nih.gov>
2007-03-22 17:57       ` Petr Baudis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070322175722.GP18276@pasky.or.cz \
    --to=pasky@suse.cz \
    --cc=flang@mail.nih.gov \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).