Thread (2 messages) 2 messages, 2 authors, 2022-01-27

Re: 'git stash push' isn't atomic when Ctrl-C is pressed

From: Junio C Hamano <hidden>
Date: 2022-01-26 23:15:59

Possibly related (same subject, not in this thread)

Ævar Arnfjörð Bjarmason [off-list ref] writes:
I understood this problem as being one where we do the ref work first,
which we could start a transaction for, the user then ctrl+c's after the
ref work is done, but before the working tree is updated.
If the process is killed while the working tree is half updated,
nothing you do with ref transaction will help.
quoted
I suspect that the untold thinking behind your statement was that we
should try not to discourage new users from asking, and I agree with
the sentiment to a certain degree.  But at the same time, I think it
is simply irresponsible to do so without distinguising between
asking for something realistic and unrealistic.
I must admit I'm not deeply familiar with builtin/stash.c in particular,
Then you can try to be on the conservative side, perhaps, to avoid
misleading less experienced folks next time?  Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help