{"thread":{"id":"58031","subject":"'git stash push -m \"label\" -- dir' saves into stash changes outside dir","startedAt":"2022-06-18T06:50:24Z","lastAt":"2022-06-18T06:50:24Z","messageCount":1,"participants":["Yuri"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"457490","messageId":"a41e809c-4d91-cfc4-a512-77173f920d38@tsoft.com","threadId":"58031","inReplyTo":null,"subject":"'git stash push -m \"label\" -- dir' saves into stash changes outside dir","fromName":"Yuri","fromEmail":"yuri@rawbw.com","sentAt":"2022-06-18T06:22:10Z","receivedAt":"2022-06-18T06:50:24Z","isPatch":false,"sender":{"key":"yuri@rawbw.com","avatar":null},"body":"I am working in the FreeBSD ports repository.\n\nThe Mk directory has some changes and additions.\n\nOther directories outside of Mk also have some additions.\n\n\nThe command I ran is:\n\n > git stash push -m \"x\" -- Mk/\n\n\nIt is supposed to create a stash entry with only changes under Mk.\n\nHowever, 'git stash show -p stash@{0}' shows changes outside of Mk as well.\n\nChanges under Mk went into stash and disappeared from the directory. \nChanges outside of Mk (wrongfully) also went into stash and remained in \nthe directory.\n\n\nIMO, this is a bug in git-2.35.1\n\n\nFreeBSD 13.1\n\n\nYuri\n\n\n"}]}