From: Johannes Schindelin Date: Mon, 22 Oct 2018 22:15:03 +0000 (-0700) Subject: rebase (autostash): store the full OID in /autostash X-Git-Tag: v2.20.0-rc0~85^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/12aeb00a22e589f85e26da833e05bb1a7e412d07?hp=12aeb00a22e589f85e26da833e05bb1a7e412d07 rebase (autostash): store the full OID in /autostash It was reported by Gábor Szeder and analyzed by Alban Gruin that the built-in rebase stores only abbreviated stash hashes in the `autostash` file. This is problematic e.g. in t5520-pull.sh, where the abbreviated hash is so short that it sometimes consists only of digits, which are subsequently mistaken ("DWIMmed") for numbers by `git stash apply`. Let's align the behavior of the built-in rebase with the scripted rebase and store the full stash hash instead. That makes it a lot less likely that it consists only of digits. Signed-off-by: Johannes Schindelin Reviewed-by: SZEDER Gábor Signed-off-by: Junio C Hamano ---