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

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

From
Petr Baudis <pasky@ucw.cz>
Date
May 10, 2005, 23:03 UTC
Message-ID
<20050510230357.GF26384@pasky.ji.cz>
In-Reply-To
<7vr7gewuxt.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Wed, May 11, 2005 at 12:57:34AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...

Show 14 quoted lines
> >>>>> "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.  cg-seek seems to be similarly affected.
> 
> Could you give this patch a try?  It lets checkout-cache remove
> a file where you want to have a directory (because you want to
> create something underneath) or remove a whole subdirectory
> where you want to have a non-directory, when '-f' parameter is
> specified.
> 
> If things test well, I'll put this in the git-jc repository and
> ask Linus to pull from it alongside with other accumulated
> patches when he returns.
Chilling.

What if you have some files not tracked by git in the subdirectory? Either you need to check for this and deal with it (Cogito's approach would be to remove the git-tracked files and rename the subdirectory), or not do it at all. Or at least please use -F or something if you really want this and like to gamble.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 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.