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

cogito: strange cg-switch -l behaviour

From
JWJohannes Walther <joh_walt@yahoo.de>
Date
Mar 6, 2007, 19:53 UTC
Message-ID
<20070306195306.43645.qmail@web27814.mail.ukl.yahoo.com>
Hi,

I currently try getting in this git thing and looked also into cogito. I would prefer cg-switch over git-checkout because of the -l (and also -p) switch that I hoped will do what I want.

Because pure cg-switch leads to problems with uncommitted local changes and quite different files in the destination branch, I'd like to alias cg-switch to cg-switch -l.

But if -l is always set, the following happens:
> master
  Testing
File is in status of master.

$ cg-switch -l Testing Saving local changes... Switching to branch Testing...

   .cg-shelve-master  
s  master
>  Testing
File is in status of Testing.

$ cg-switch -l master Saving local changes... cg-commit: Nothing to commit

   .cg-shelve-master
>  .cg-shelve-Testing  

s master s Testing

File is still in status of Testing. But I'd expect getting my successfully saved master status back.

Is that the desired behaviour?
Johannes
	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Message 1 of 1 in “cogito: strange cg-switch -l behaviour”
  1. Johannes WaltherMar 6, 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.