Signed-off-by: Pierre Habouzit <madcoder@debian.org>
esac
fi
+no_changes () {
+ git diff-index --quiet --cached HEAD --ignore-submodules -- &&
+ git diff-files --quiet --ignore-submodules
+}
+
unclean=
-git rev-parse --verify HEAD > /dev/null && \
- git update-index --refresh && \
- git diff-files --quiet && \
- git diff-index --cached --quiet HEAD -- || unclean=t
+no_changes || unclean=t
+
case "$action" in
rebase)
echo ""
echo "run 'git stash apply' when rebase is finished"
else
- git stash apply
+ git stash pop
fi
fi
export VISUAL=vim
export CCACHE_DIR="$HOME/.cache/ccache"
export CCACHE_NOCOMPRESS=NoThanks
+export CCACHE_HARDLINK=YesPlease
export RLWRAP_HOME="$HOME/.cache/rlwrap/"
export GTK_IM_MODULE=xim