From c471b5238cc181143805b25dcb133da2a95acaac Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 5 Mar 2019 12:00:24 +0800 Subject: update --- tigrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 08e666b..7e3081e 100644 --- a/tigrc +++ b/tigrc @@ -12,7 +12,11 @@ bind generic w :toggle ignore-case bind main gG :toggle commit-title-graph bind main G move-last-line -bind main c @git checkout %(commit) +bind main c @sh -c "git branch --points-at=%(commit) | \ + sed -n '/^*/ {n;p}' | \ + (cat -; echo %(commit)) | \ + head -1 | \ + xargs git checkout" bind main T @git tag "%(prompt Enter tag name: )" %(commit) bind main !?git rebase -i %(commit) bind main M ?git merge %(commit) -- cgit v1.2.3-70-g09d2