From: Jan Harkes Date: Fri, 22 Apr 2005 14:23:42 GMT Subject: Re: First web interface and service API draft Message-ID: <20050422142342.GG30915@delft.aura.cs.cmu.edu> In-Reply-To: <1114166517.3233.4.camel@localhost> On Fri, Apr 22, 2005 at 12:41:56PM +0200, Christian Meder wrote: > ------- > //blob/ > //commit/ It is trivial to find an object when given a sha, but to know the object type you'd have to decompress it and check inside. Also the way git stores these things you can't have both a blob and a commit with the same sha anyways. So why not use, / will give you the raw object. /.html (.xml/.txt) will give you a parsed version for user presentation And since hexadecimal numbers only have [0-9a-f] as valid characters, you can still have additional directories that can be guaranteed unique as long as the first two characters are not a valid hexadecimal value. So things like /branch/linus, or /changelog/, /log/, /diff/. Yeah, you can't use /delta/ without looking at more than the first two characters, but that's where dictionaries can come in handy. Jan