git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yuri <yuri@rawbw.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: 'git commit .' in a subdirectory also commits staged files in other subdirectories
Date: Fri, 21 Oct 2022 12:40:51 -0700	[thread overview]
Message-ID: <3a4dfad5-0f2e-14d8-61f2-779616de1ae0@tsoft.com> (raw)

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


             reply	other threads:[~2022-10-21 19:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-21 19:40 Yuri [this message]
2022-10-21 21:48 ` 'git commit .' in a subdirectory also commits staged files in other subdirectories Taylor Blau
2022-10-21 22:02   ` Junio C Hamano
2022-11-07 18:45   ` Yuri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3a4dfad5-0f2e-14d8-61f2-779616de1ae0@tsoft.com \
    --to=yuri@rawbw.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).