Subject: permalink to latest raw
a permanent link to the latest raw.
so, instead of
http://gist.github.com/raw/9999999/blablahblablah/filename.ext
which is not the latest version
we can have something like
http://gist.github.com/raw/9999999/latest/filename.ext which always
get us the latest version.
tia.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by defunkt on 16 Jul, 2009 01:13 AM
Good idea -- added to our bug tracker.
Cheers,
Chris
3 Posted by github on 18 Jul, 2009 05:43 AM
Rather than 9999999 what about HEAD? Makes more sense since that chunk of the url is the commit id and HEAD is an alias for the latest commit.
Support Staff 4 Posted by Tekkub on 18 Jul, 2009 07:23 PM
HEAD is not an alias for the latest commit in git. In a bare repo it is a pointer to the "default" branch, and in a non-bare (clothed?) repo it's a pointer to the currently checked out branch.
Most likely we'd do the same thing as github does, let you replace the SHA1 with any valid reference (i.e. commit, branch, or tag).