From d54accee0e8518f33abd28248e11cfffdc66235d Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 9 Oct 2019 10:03:36 +0800 Subject: update --- tigrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 0b795a6..e714748 100644 --- a/tigrc +++ b/tigrc @@ -206,9 +206,12 @@ bind blob m >tig -- %(file) bind status j :/^[MADRU?] bind status k :?^[MADRU?] -# quick stage +# update index bind status A @git add . bind status R @git reset +bind status gu @git update-index --assume-unchanged %(file) # ignore file +bind status gn >sh -c "git ls-files -v | grep '^h ' | cut -d' ' -f2 | \ + xargs git update-index --no-assume-unchanged" # resume ignored files # stash bind status s ?>git stash @@ -229,7 +232,6 @@ bind status gc @git clean -f bind status Ba @git rebase --abort bind status Bc @git rebase --continue bind status !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" -bind status gu @git update-index --assume-unchanged %(file) # apply patch file bind status ?git am %(file) -- cgit v1.2.3-70-g09d2