summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <bsima@groq.com>2022-11-18 06:50:25 -0800
committerBen Sima <bsima@groq.com>2024-04-17 13:01:43 -0700
commitddd5dddf08b14c215bbc42839501d1acaaf66257 (patch)
treef2cbd28450f448813afd010ec71993c4ca52dc52
parentc4122ad8383fc234cec8aefa86705970f20af2ab (diff)
add git mylog
-rw-r--r--lib/common.nix1
1 files changed, 1 insertions, 0 deletions
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 " " [