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

Re: git pull fails

From
Junio C Hamano <junkio@cox.net>
Date
Mar 29, 2006, 00:40 UTC
Message-ID
<7vu09igk1t.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060329002415.GG27689@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 7 quoted lines
> If your current branch would really be a remote branch and you simply
> git-fetched, your HEAD would change but not your working tree, and at
> that moment things would become very confusing. Cogito would start
> showing nonsensical stuff for cg-status and cg-diff (as well as
> git-diff-tree HEAD output), but your index would at least still be
> correct so I'm not sure how much attention do tools like git-diff pay to
> it, the level of messup would be proportional to that.

People want to leave tracking branches checked out, especially when they are not developers but are "update to the latest and compile the bleeding edge" types. Support for that mode of operation was invented long time ago and git-pull knows about it, and the idea was ported to git-cvsimport recently.

Previous: Petr BaudisNext: Petr Baudis
Message 9 of 10 in “git pull fails”
  1. Timo HirvonenMar 28, 2006
  2. Ralf BaechleMar 28, 2006
  3. Timo HirvonenMar 28, 2006
  4. Radoslaw SzkodzinskiMar 28, 2006
  5. Petr BaudisMar 28, 2006
  6. Timo HirvonenMar 29, 2006
  7. Junio C HamanoMar 29, 2006
  8. Petr BaudisMar 29, 2006
  9. Junio C HamanoMar 29, 2006
  10. Petr BaudisMar 29, 2006

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.