git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Is git-checkout's restoring d/f conflict really sane?
@ 2019-05-14  9:41 Duy Nguyen
  2019-05-14 10:37 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Duy Nguyen @ 2019-05-14  9:41 UTC (permalink / raw)
  To: Git Mailing List

$ echo data > one
$ git add one
$ rm one
$ mkdir one
$ echo two > one/two
$ echo three > one/three
$ git checkout one
$ ls -l one
-rw-r--r-- 1 pclouds pclouds 5 May 14 16:36 one

Replacing a file is one thing. In this case we're deleting a directory
and unknown number of files inside (in this case 'two' and 'three').
Is this really a good thing to do?

If it's not but too late to do anything about git-checkout, could
git-restore do something better (and exactly what)?
-- 
Duy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-15  1:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14  9:41 Is git-checkout's restoring d/f conflict really sane? Duy Nguyen
2019-05-14 10:37 ` Junio C Hamano
2019-05-14 10:49   ` Duy Nguyen
2019-05-15  1:56     ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).