git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git commit .' in a subdirectory also commits staged files in other subdirectories
@ 2022-10-21 19:40 Yuri
  2022-10-21 21:48 ` Taylor Blau
  0 siblings, 1 reply; 4+ messages in thread
From: Yuri @ 2022-10-21 19:40 UTC (permalink / raw)
  To: Git Mailing List

I had several staged files in various subdirectories of the cloned 
repository tree.

'git commit .' in one of them attempted to commit all of them, not only 
the files in that subdirectory.

This is a very unreasonable behavior, because while being in any 
subdirectory 'git commit .' should only affect that subdirectory, and 
not files elsewhere.


git-2.38.0

FreeBSD 13.1


Yuri


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

end of thread, other threads:[~2022-11-07 18:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-21 19:40 'git commit .' in a subdirectory also commits staged files in other subdirectories Yuri
2022-10-21 21:48 ` Taylor Blau
2022-10-21 22:02   ` Junio C Hamano
2022-11-07 18:45   ` Yuri

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 NNTP newsgroup(s).