From: Yuri <yuri@tsoft.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: 'git stash push -- {dir}' puts files in stash that are outside of {dir}
Date: Wed, 26 Jul 2023 10:36:16 -0700 [thread overview]
Message-ID: <792f71bb-2b9a-2e2b-80ea-9e3afd9fbfb4@tsoft.com> (raw)
In-Reply-To: <xmqqsf9ad1ju.fsf@gitster.g>
On 7/26/23 10:29, Junio C Hamano wrote:
> Are there configuration variables set to affect the behaviour of the
> "git stash" command in your environment that I do not have (I have
> nothing in "git config -l | grep stash" output), which may be
> affecting why it does not reproduce for me?
"git config -l | grep stash" doesn't print anything.
Interestingly, the command 'git stash push -- Mk' puts intended and unintended files in stash, but the changes in unintended files (ones not under Mk) stay, while changes in the intended files are gone, as expected.
Clearing all changes and doing 'git stash pop && git stash push -- Mk' reproduces the problem.
Yuri
next prev parent reply other threads:[~2023-07-26 17:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 17:05 'git stash push -- {dir}' puts files in stash that are outside of {dir} Yuri
2023-07-26 17:29 ` Junio C Hamano
2023-07-26 17:36 ` Yuri [this message]
2023-07-26 18:14 ` Junio C Hamano
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=792f71bb-2b9a-2e2b-80ea-9e3afd9fbfb4@tsoft.com \
--to=yuri@tsoft.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox