From 322d421c0fa8e8dd0be75e202797218027df3d69 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 19 Dec 2020 17:19:28 +0800 Subject: update --- tigrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tigrc') diff --git a/tigrc b/tigrc index cb726b7..d34b8d1 100644 --- a/tigrc +++ b/tigrc @@ -296,6 +296,9 @@ bind tree m >tig --follow -- %(file) bind tree xt +sh -c "git rev-parse %(commit)^{tree} | xsel -ib -o | awk '{print \"Tree Clipped\", $1}'" +bind tree c NONE +bind tree cp +sh -c "git cat-file -p %(blob) >%(file) && echo File copied to %(file)" + bind tree . >sh -c "git diff --patch-with-stat %(ref) -- %(file) | tig" #==================== -- cgit v1.2.3-70-g09d2