All of lore.kernel.org
 help / color / mirror / Atom feed
* unwanted interaction of git stash and cherry-pick --abort
@ 2025-04-20 13:14 Markus Raab
  2025-04-20 13:37 ` brian m. carlson
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Raab @ 2025-04-20 13:14 UTC (permalink / raw)
  To: git

Dear git maintainers,

What did you do before the bug happened? (Steps to reproduce your issue)

git init-db
git commit --allow-empty # needed for git stash later
echo a > a
echo b > b
git add a b # some arbitrary files with content
git stash
git cherry-pick 170bbe5 # any commit that cannot be applied, e.g. the 
initial commit here
git cherry-pick --abort

What did you expect to happen? (Expected behavior)

That a and b are still there or I am somehow informed that the files a 
and b would get lost.

What happened instead? (Actual behavior)

The files a and b are lost.

What's different between what you expected and what actually happened?

Loss of data.

Anything else you want to add:

Everything fine, only the content of a and b is lost ;(


[System Info]
git version:
git version 2.39.5
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
compiler info: gnuc: 12.2
libc info: glibc: 2.36
$SHELL (typically, interactive shell): /bin/zsh


[Enabled Hooks]

-- 
Best regards,
Markus Raab


^ permalink raw reply	[flat|nested] 6+ messages in thread
* unwanted interaction of git stash and cherry-pick --abort
@ 2025-04-20 13:18 Markus Raab
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Raab @ 2025-04-20 13:18 UTC (permalink / raw)
  To: git

Dear git maintainers,

What did you do before the bug happened? (Steps to reproduce your issue)

git init-db
git commit --allow-empty # needed for git stash later
echo a > a
echo b > b
git add a b # some arbitrary files with content
git stash
git cherry-pick 170bbe5 # any commit that cannot be applied, e.g. the 
initial commit here
git stash pop
git cherry-pick --abort

What did you expect to happen? (Expected behavior)

That a and b are still there or I am somehow informed that the files a 
and b would get lost.

What happened instead? (Actual behavior)

The files a and b are lost.

What's different between what you expected and what actually happened?

Loss of data.

Anything else you want to add:

Everything fine, only the content of a and b is lost ;(


[System Info]
git version:
git version 2.39.5
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
compiler info: gnuc: 12.2
libc info: glibc: 2.36
$SHELL (typically, interactive shell): /bin/zsh


[Enabled Hooks]

-- 
Best regards,
Markus Raab


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-21  5:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20 13:14 unwanted interaction of git stash and cherry-pick --abort Markus Raab
2025-04-20 13:37 ` brian m. carlson
2025-04-20 13:48   ` Markus Raab
2025-04-20 21:05     ` Junio C Hamano
2025-04-21  5:38       ` Markus Raab
  -- strict thread matches above, loose matches on Subject: below --
2025-04-20 13:18 Markus Raab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.