Thread (1 message) 1 message, 1 author, 2021-02-20

Re: [PATCH 1/2] rm: changes in the '.gitmodules' are staged after using '--cached'

From: Junio C Hamano <hidden>
Date: 2021-02-20 03:32:38

Shourya Shukla [off-list ref] writes:
quoted
Since we won't come to this block when doing index_only, we are
allowed to touch the working tree contents and files.  We indeed do
"rm -rf" of the submodule working tree and touch .gitmodules file
that is in the working tree.
quoted
 			}
+			if (!remove_path_from_gitmodules(path))
+				gitmodules_modified = 1;
+			continue;
But this looks wrong.  It might be OK to remove from the .gitmodules
stored in the index, but I fail to see why it is justified to touch
the working tree file when "--cached" is given.
No no, you are correct. Phillipe pointed out the same thing. I don't
know how I made this mistake.
...
quoted
I think you'd need to
...
Yeah, this approach seems perfect. I will do it this way.
OK, then let's go that way.

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