Skip to content
  • Denton Liu's avatar
    rebase: save autostash entry into stash reflog on --quit · 9b2df3e8
    Denton Liu authored and Junio C Hamano's avatar Junio C Hamano committed
    In a03b5553
    
     (merge: teach --autostash option, 2020-04-07), the
    --autostash option was introduced for `git merge`. Notably, when
    `git merge --quit` is run with an autostash entry present, it is saved
    into the stash reflog. This is contrasted with the current behaviour of
    `git rebase --quit` where the autostash entry is simply just dropped out
    of existence.
    
    Adopt the behaviour of `git merge --quit` in `git rebase --quit` and
    save the autostash entry into the stash reflog instead of just deleting
    it.
    
    Signed-off-by: default avatarDenton Liu <liu.denton@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9b2df3e8