diff options
author | Ben Sima <bsima@groq.com> | 2022-11-18 06:50:25 -0800 |
---|---|---|
committer | Ben Sima <bsima@groq.com> | 2024-04-17 13:01:43 -0700 |
commit | ddd5dddf08b14c215bbc42839501d1acaaf66257 (patch) | |
tree | f2cbd28450f448813afd010ec71993c4ca52dc52 /lib | |
parent | c4122ad8383fc234cec8aefa86705970f20af2ab (diff) |
add git mylog
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.nix | 1 |
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 " " [ |