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

Re: "git-checkout-cache -f -a" failure

From
Junio C Hamano <junkio@cox.net>
Date
May 10, 2005, 02:29 UTC
Message-ID
<7v64xru83t.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<118833cc05050911255e601fc@mail.gmail.com>
>>>>> "MW" == Morten Welinder <mwelinder@gmail.com> writes:

MW> git-checkout-cache is having problems when files change from directories to MW> plain files or vice versa.

Changing files vs directories _is_ a big change and happens rarely in practice; I think the current behaviour is justified---it makes the user take notice and the user _should_ take notice.

Porcelain layer, if it wanted to, should be able to hide this from the user, but it depends on which Porcelain layer command is involved. My understanding of cg-seek is to switch the work tree to a completely different state, so in that case it probably should hide this (still it makes me feel a bit nervous to realize that I am advocating for the tool to silently remove a whole subtree to make room for a file, though).

Previous: Morten WelinderNext: Morten Welinder
Message 2 of 19 in “"git-checkout-cache -f -a" failure”
  1. Morten WelinderMay 9, 2005
  2. Junio C HamanoMay 10, 2005
  3. Morten WelinderMay 10, 2005
  4. Junio C HamanoMay 10, 2005
  5. Petr BaudisMay 10, 2005
  6. Junio C HamanoMay 11, 2005
  7. Morten WelinderMay 11, 2005
  8. Junio C HamanoMay 11, 2005
  9. Junio C HamanoMay 11, 2005
  10. Test suitePetr Baudis, May 11, 2005
  11. Test suiteJunio C Hamano, May 12, 2005
  12. Petr BaudisMay 12, 2005
  13. Junio C HamanoMay 12, 2005
  14. Fix git-diff-files for symlinks.Junio C Hamano, May 12, 2005
  15. 0/3 Core GIT fixes and additions.Junio C Hamano, May 13, 2005
  16. checkout-cache fixJunio C Hamano, May 12, 2005
  17. Petr BaudisMay 12, 2005
  18. Junio C HamanoMay 12, 2005
  19. Junio C HamanoMay 11, 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.