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

Re: Cogito nit: cg-update should default to "origin".

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 28, 2005, 00:53 UTC
Message-ID
<20050428005337.GA3422@pasky.ji.cz>
In-Reply-To
<42702F20.3050200@dwheeler.com>

Dear diary, on Thu, Apr 28, 2005 at 02:32:32AM CEST, I got a letter where "David A. Wheeler" <dwheeler@dwheeler.com> told me that...

> Minor nit on Cogito: I think cg-update should default to "origin",
> not the head, if you leave it unspecified.  Instead, add an
> option flag to specify the HEAD.  The origin seems (to me)
> to be a MUCH more common situation (and thus the better default).

Actually, I wasn't too happy with the current update-to-HEAD special case. Sure, it's similar to SVN, but SVN's concepts are totally different here, and this special case wart (which does really do something entirely different than normal cg-update) is one of the Cogito-related shadows in my mind. What about moving this special case to something like

	cg-restore

and changing the defaulting of update and pull back to 'origin'? I think people do this cg-update without arguments so seldom that changing this now shouldn't hurt much, right?

Another thing is to UI-wise maintain clear difference between cg-cancel and cg-restore. Do you think the names are distinctive enough? Any better naming ideas?

Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: David A. WheelerNext: Dan Holmsand
Message 20 of 23 in “I'm missing isofs.h”
  1. Andrew MortonApr 27, 2005
  2. Jan HarkesApr 27, 2005
  3. Petr BaudisApr 27, 2005
  4. Jan HarkesApr 27, 2005
  5. Jan HarkesApr 27, 2005
  6. Steven ColeApr 27, 2005
  7. Steven ColeApr 27, 2005
  8. Petr BaudisApr 27, 2005
  9. Linus TorvaldsApr 28, 2005
  10. Petr BaudisApr 28, 2005
  11. Junio C HamanoApr 28, 2005
  12. Junio C HamanoApr 28, 2005
  13. Make diff-cache and friends output more cg-patch friendly.Junio C Hamano, Apr 28, 2005
  14. Petr BaudisApr 28, 2005
  15. David A. WheelerApr 28, 2005
  16. Linus TorvaldsApr 28, 2005
  17. Junio C HamanoApr 28, 2005
  18. Linus TorvaldsApr 28, 2005
  19. Cogito nit: cg-update should default to "origin".David A. Wheeler, Apr 28, 2005
  20. Petr BaudisApr 28, 2005
  21. Dan HolmsandApr 28, 2005
  22. David A. WheelerApr 28, 2005
  23. Dan HolmsandApr 28, 2005

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.