From a9b48ef9f97a4b1255a63dca8e2524927729db96 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 26 Mar 2019 21:16:16 +0800 Subject: update --- tigrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 86dc6ed..23f030f 100644 --- a/tigrc +++ b/tigrc @@ -46,6 +46,7 @@ bind main P ?git push %(remote) %(branch):%(branch) bind main u ?git reset %(commit) --soft bind main gu ?git reset %(commit) --hard bind main !?git rebase -i %(commit) +bind main ! ?git revert %(commit) bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a @@ -59,6 +60,9 @@ bind main V @git log -S "%(prompt Enter search word: )" bind main S !git format-patch -1 %(commit) +bind main . >sh -c "git diff %(commit) | tig" +bind main > >sh -c "git diff %(commit) --no-prefix -U1000 | tig" + # blame view set blame-view = author:abbreviated date:default id:yes,color line-number:yes text @@ -101,9 +105,13 @@ bind tree 9 !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c" # refs view bind refs C none bind refs c @git checkout %(branch) + bind refs bd ?git branch -d %(branch) bind refs bD ?git branch -D %(branch) +bind refs . >sh -c "git diff %(branch) | tig" +bind refs > >sh -c "git diff %(branch) --prefix -U1000 | tig" + # log view bind log n :/^commit bind log p :?^commit -- cgit v1.2.3-70-g09d2