summary refs log tree commit diff stats
path: root/git/.config
diff options
context:
space:
mode:
authorAlan Pearce2017-12-12 16:47:44 +0100
committerAlan Pearce2017-12-12 16:48:40 +0100
commit8f00c98d5d06a0f9eed7ffa717aa9141d19b8ca7 (patch)
tree12030d18172b357084a4e80de2a9fd07b8daa6ba /git/.config
parent77af8db6fc77342281b7c4f5b1e7c802319ad1be (diff)
downloaddotfiles-8f00c98d5d06a0f9eed7ffa717aa9141d19b8ca7.tar.lz
dotfiles-8f00c98d5d06a0f9eed7ffa717aa9141d19b8ca7.tar.zst
dotfiles-8f00c98d5d06a0f9eed7ffa717aa9141d19b8ca7.zip
git: add aliases for lasttag and pending (merged PRs not in a tag)
Diffstat (limited to 'git/.config')
-rw-r--r--git/.config/git/config2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/.config/git/config b/git/.config/git/config
index 0acdefb..0a1f1bf 100644
--- a/git/.config/git/config
+++ b/git/.config/git/config
@@ -17,6 +17,8 @@
 	br = branch
 	co = checkout
 	ready = rebase -i @{u}
+	lasttag = "!sh -c 'git tag --sort=taggerdate | tail -n1'"
+	pending = "!sh -c 'git log --oneline --merges --grep=\"Merge pull request\" ...$(git lasttag)'"
 	lg = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
 	standup = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --since yesterday --author Alan
 	ignored = ls-files --others -i --exclude-standard