Re: [PATCH v2] stash: honor --no-overwrite-ignore with --all
- From
- Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
- Date
- Feb 2, 2026, 16:48 UTC
- Message-ID
- <fd0da056-effa-43c8-a387-1db02b5636c8@app.fastmail.com>
- In-Reply-To
- <20260202162225.35206-3-pushkarkumarsingh1970@gmail.com>
On Mon, Feb 2, 2026, at 17:22, Pushkar Singh wrote:
Show 16 quoted lines
> Teach stash push/save to avoid -a cleanup when --no-overwrite-ignore > is given by downgrading INCLUDE_ALL_FILES to include-untracked. > > This fixes ignored files being incorrectly removed despite > --no-overwrite-ignore, and removes the stash FIXME by plumbing > overwrite_ignore into unpack_trees(). > > Add regression tests covering both overwrite and no-overwrite cases. > > Changes since v1: > - Use OPT_BOOL correctly for overwrite-ignore. > - Fix stash -a cleanup when --no-overwrite-ignore is given by downgrading > INCLUDE_ALL_FILES to include-untracked. > - Add regression test for --overwrite-ignore. > - Adjust no-overwrite-ignore test to explicitly use -a. > - Add Signed-off-by.
These patch version changes are supposed to go after the `---` (after the `Signed-off-by`). I guess people who are comfortable editing patches write them manually in that place (unless something like b4 or gigitgadget does it for them). I prefer to use `--notes` and let git-format-patch(1) inject it for me. :)
Show 7 quoted lines
> > Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com> > --- > builtin/stash.c | 14 ++++++++------ > t/t3905-stash-include-untracked.sh | 16 ++++++++++++++-- > 2 files changed, 22 insertions(+), 8 deletions(-) >[snip]