Subject: permalink to latest raw

Original Post dennyhalim's Avatar

dennyhalim

16 Jul, 2009 12:12 AM

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.

  1. Support Staff 2 Posted by defunkt on 16 Jul, 2009 01:13 AM

    defunkt's Avatar

    Good idea -- added to our bug tracker.

    Cheers,

    Chris

  2. 3 Posted by github on 18 Jul, 2009 05:43 AM

    github's Avatar

    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.

  3. Support Staff 4 Posted by Tekkub on 18 Jul, 2009 07:23 PM

    Tekkub's Avatar

    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).

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

10 Feb, 2010 02:58 AM
10 Feb, 2010 01:30 AM
10 Feb, 2010 01:22 AM
10 Feb, 2010 01:15 AM
10 Feb, 2010 12:15 AM

 

10 Feb, 2010 12:04 AM
09 Feb, 2010 10:54 PM
09 Feb, 2010 10:44 PM
09 Feb, 2010 09:45 PM
09 Feb, 2010 08:48 PM