Broken in
4fc2ad6 ("vcs/gitconfig: replace "stash save" with "stash
push" in aliases", 2018-06-13).
sed_i 's/log --patch/log -p/' gitconfig
fi
+ if git stash push -- doesnt-exist 2>&1 \
+ | grep 'usage: git stash list' > /dev/null; then
+ echo 'gitconfig: replacing "stash push" with "stash save"'
+ sed_i 's/stash push/stash save/g' gitconfig
+ fi
+
# If coloredstderr is used to color stderr then remove the workaround for
# missing output to stderr.
if test -n "${LD_PRELOAD:+set}" \