Skip to content

Instantly share code, notes, and snippets.

@lrenn
Created October 12, 2010 20:12
Show Gist options
  • Save lrenn/622824 to your computer and use it in GitHub Desktop.
Save lrenn/622824 to your computer and use it in GitHub Desktop.
(defn branch-revision [version]
(let [v (split version #"/")]
(if-let [rev (second v)]
{:branch (first v) :version rev}
{:version version})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment