From: Junio C Hamano <gitster@pobox.com>
To: Taylor Blau <me@ttaylorr.com>
Cc: Yuri <yuri@rawbw.com>, Git Mailing List <git@vger.kernel.org>
Subject: Re: 'git commit .' in a subdirectory also commits staged files in other subdirectories
Date: Fri, 21 Oct 2022 15:02:11 -0700 [thread overview]
Message-ID: <xmqqy1t8j0nw.fsf@gitster.g> (raw)
In-Reply-To: <Y1MTtNcUHyv76UEV@nand.local> (Taylor Blau's message of "Fri, 21 Oct 2022 17:48:36 -0400")
Taylor Blau <me@ttaylorr.com> writes:
>> '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.
>
> That isn't right, though I can't reproduce what you describe from your
> report. Try this script out:
> ...
"git commit --include ." would exhibit the behaviour, but that
should not be the default, so I am also puzzled.
next prev parent reply other threads:[~2022-10-21 22:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=xmqqy1t8j0nw.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=me@ttaylorr.com \
--cc=yuri@rawbw.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.