gitonomy/gitlib — pull request #8 by dubcanada (2013-01-13 03:39:15+00:00)
Title: Add getShortname for reference

Hey,

I'm not sure if there is a better way to do this or if this covers all use cases, I needed a way to grab a short name from a reference the ref/heads/ and ref/tags/ is meaningless to the end user. So I made a quick function.

As I said before I'm not sure if this is the best way to do it, I'll leave that up to you guys to decide. I figured I'd at least start a discussion on it.