From ddd5dddf08b14c215bbc42839501d1acaaf66257 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 18 Nov 2022 06:50:25 -0800 Subject: add git mylog --- lib/common.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/common.nix b/lib/common.nix index a46dbc2..6aa74ac 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -133,6 +133,7 @@ in { slog = "log --stat"; glog = ''log --decorate --all --graph --pretty=format:"%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative''; logbr = "log -r origin/HEAD..HEAD"; + mylog = ''!git log --author=$USER --decorate --pretty=format:"%Cred%h%Creset %s%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative''; mrd = "!cat <(git shortlog origin/HEAD..HEAD) <(git diff --stat origin/HEAD...HEAD)"; extend = "!git commit --fixup $1 && git rebase --autosquash $1~"; mr = lib.concatStringsSep " " [ -- cgit v1.2.3