git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git stash push -m "label" -- dir' saves into stash changes outside dir
@ 2022-06-18  6:22 Yuri
  0 siblings, 0 replies; only message in thread
From: Yuri @ 2022-06-18  6:22 UTC (permalink / raw)
  To: Git Mailing List

I am working in the FreeBSD ports repository.

The Mk directory has some changes and additions.

Other directories outside of Mk also have some additions.


The command I ran is:

 > git stash push -m "x" -- Mk/


It is supposed to create a stash entry with only changes under Mk.

However, 'git stash show -p stash@{0}' shows changes outside of Mk as well.

Changes under Mk went into stash and disappeared from the directory. 
Changes outside of Mk (wrongfully) also went into stash and remained in 
the directory.


IMO, this is a bug in git-2.35.1


FreeBSD 13.1


Yuri



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-18  6:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-18  6:22 'git stash push -m "label" -- dir' saves into stash changes outside dir 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).