'git stash push -m "label" -- dir' saves into stash changes outside dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux