From b39de4dca13f27ea78e6a36a0040def197c37757 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 9 Sep 2022 15:41:13 +0200 Subject: [PATCH] -git: checkout: +--ignore-other-worktrees - It corrupts other worktrees. --- .bashrc | 1 - 1 file changed, 1 deletion(-) diff --git a/.bashrc b/.bashrc index 2bd97fb..0a78130 100644 --- a/.bashrc +++ b/.bashrc @@ -394,7 +394,6 @@ function rpmsrclist } function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken update "$@";);} function gitcommit { git commit -a --allow-empty-message -m '' "$@"; } -function git {(unset git;if [ "$1" = "checkout" ];then shift;git checkout --ignore-other-worktrees "$@";else git "$@";fi)} function gpg {(unset gpg; http_proxy= all_proxy= HTTP_PROXY= ALL_PROXY= gpg "$@"; );} function swap() {( set -ex;local TMPFILE=tmp.$$;[ $# = 2 ] && mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE "$2" && echo done )} alias gthumb='rm -rf ~/.cache/thumbnails/fail/;gthumb' -- 1.8.3.1