X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=vcs%2Fsetup.sh;h=3c04f595a54012dc696e50268aa19a2106384e31;hp=8ea39ac39c5b1f81a1f266203a70dbf1e0038d51;hb=d105227b4987b9e743a72b82086b61693e00fb96;hpb=fa9155706138fb9cd7776ba4c709425325db820f diff --git a/vcs/setup.sh b/vcs/setup.sh index 8ea39ac..3c04f59 100755 --- a/vcs/setup.sh +++ b/vcs/setup.sh @@ -42,6 +42,12 @@ if installed git; then 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}" \