From f66da6fee6fa065d1bfc2bed55fb25618b7fdf67 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 25 May 2021 20:26:37 +0200 Subject: [PATCH] home: git: add 'pick' alias I wanted to name it 'pickaxe' but for a curious reason, it does not seem to be working when I use that alias... I am trying to find a second alias name for `git log -p -S`, which only shows commits that change the number of occurrences of its pickaxe in the file. Whereas `-G` shows any commit involving the pickaxe in its diff. --- home/git/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/git/default.nix b/home/git/default.nix index da5efae..718ff27 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -23,6 +23,7 @@ in assume = "update-index --assume-unchanged"; unassume = "update-index --no-assume-unchanged"; assumed = "!git ls-files -v | grep ^h | cut -c 3-"; + pick = "log -p -G"; push-new = "!git push -u origin " + ''"$(git branch | grep '^* ' | cut -f2- -d' ')"''; };