Thread (12 messages) 12 messages, 3 authors, 2021-09-10

Re: [PATCH 3/3] stash: restore untracked files AFTER restoring tracked files

From: Derrick Stolee <hidden>
Date: 2021-09-08 13:15:26

On 9/7/2021 9:43 PM, Elijah Newren via GitGitGadget wrote:
From: Elijah Newren <redacted>

If a user deletes a file and places a directory of untracked files
there, then stashes all these changes, the untracked directory of files
cannot be restored until after the corresponding file in the way is
removed.  So, restore changes to tracked files before restoring
untracked files.

There is no similar problem to worry about in the opposite directory,
s/directory/direction/ ?
because untracked files are always additive.  Said another way, there's
no way to "stash a removal of an untracked file" because if an untracked
file is removed, git simply doesn't know about it.
Makes sense.

Thanks,
-Stolee
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help