From 0ee989c9b4377f99f76733dd1ca0c0ff4b7365b8 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Thu, 2 May 2013 09:47:59 -0400 Subject: [PATCH] feat(GitAliases): add lastref command --- EthanBrown.GitAliases/EthanBrown.GitAliases.nuspec | 1 + EthanBrown.GitAliases/tools/chocolateyInstall.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/EthanBrown.GitAliases/EthanBrown.GitAliases.nuspec b/EthanBrown.GitAliases/EthanBrown.GitAliases.nuspec index 91f5976..c4e2f98 100644 --- a/EthanBrown.GitAliases/EthanBrown.GitAliases.nuspec +++ b/EthanBrown.GitAliases/EthanBrown.GitAliases.nuspec @@ -19,6 +19,7 @@ filelog = log -u hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) [%an]%Creset' --abbrev-commit --date=relative last = log -p --max-count=1 --word-diff + lastref = rev-parse --short HEAD lasttag = describe --tags --abbrev=0 pick = add -p remotes = remote -v show diff --git a/EthanBrown.GitAliases/tools/chocolateyInstall.ps1 b/EthanBrown.GitAliases/tools/chocolateyInstall.ps1 index 23390fb..a5a1b17 100644 --- a/EthanBrown.GitAliases/tools/chocolateyInstall.ps1 +++ b/EthanBrown.GitAliases/tools/chocolateyInstall.ps1 @@ -16,6 +16,7 @@ try { git config --global alias.filelog 'log -u' git config --global alias.hist "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) [%an]%Creset' --abbrev-commit --date=relative" git config --global alias.last 'log -p --max-count=1 --word-diff' + git config --global alias.lastref 'rev-parse --short HEAD' git config --global alias.lasttag 'describe --tags --abbrev=0' git config --global alias.pick 'add -p' git config --global alias.remotes 'remote -v show'