From b9dc7a1feff7ad0fb588b0e8db61b89db48173ae Mon Sep 17 00:00:00 2001 From: Holger Just Date: Mon, 12 Jan 2015 16:57:56 +0100 Subject: [PATCH] Get the hash of the current git HEAD with ghead --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d735e44..a4474ff 100644 --- a/.bashrc +++ b/.bashrc @@ -236,7 +236,7 @@ alias log='git lg' alias ciam='git ci -am' alias cia='git ci -a' alias ga='git add -p' -alias head='git rev-parse --verify HEAD' +ghead() { git rev-parse --verify "${1:-HEAD}"; } alias be="bundle exec" alias rs="rails server -b 127.0.0.1"