https://github.com/JuliaLang/julia
Raw File
Tip revision: 40059ec3fa2aedcfc93634658d3264f0e55470a3 authored by Jeff Bezanson on 28 June 2016, 19:44:22 UTC
specialize `cat` for the common case of cat'ing in one dimension
Tip revision: 40059ec
commit-name.sh
#!/bin/sh
# This file is a part of Julia. License is MIT: http://julialang.org/license

# Need to be run from a julia repo clone
# First argument (Optional) is a ref to the commit

gitref=${1:-HEAD}

last_tag=$(git describe --tags --abbrev=0 "$gitref")
ver=$(git show "$gitref:VERSION")
nb=$(git rev-list --count "$gitref" "^$last_tag")
echo "$ver+$nb"
back to top