git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: qiuestion about Git and Cogito

From
Petr Baudis <pasky@suse.cz>
Date
Mar 22, 2007, 17:57 UTC
Message-ID
<20070322175722.GP18276@pasky.or.cz>
In-Reply-To
<46028B45.2010802@mail.nih.gov>
On Thu, Mar 22, 2007 at 02:57:25PM CET, Francois Lang wrote:
Show 12 quoted lines
> 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
Previous: Petr Baudis
Message 3 of 3 in “qiuestion about Git and Cogito”
  1. Francois LangMar 20, 2007
  2. Petr BaudisMar 20, 2007
  3. Petr BaudisMar 22, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.