Re: [RFC] get_sha1() shorthands for blob/tree objects
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 19, 2006, 14:44 UTC
- Message-ID
- <Pine.LNX.4.64.0604190742240.3701@g5.osdl.org>
- In-Reply-To
- <4445F1B0.4060105@op5.se>
On Wed, 19 Apr 2006, Andreas Ericsson wrote:
> > Except that you'll have to explicitly state HEAD:pathname:with:colon, or does > it try finding a file with the argument verbatim first?
If you have a pathname:with:colon and you _just_ want to use it as a pathname, you'd do one of either:
- use "--" to separate the pathnames from the revision info. That always works. - even without the "--", if the first part of the pathname:with:colon (ie the "pathname" part) cannot be looked up as a SHA1 tag, then the pathname:with:colon is left alone and seen as a normal file.
So "--" is always the dis-ambiguator. But it almost certainly will never be needed.
Linus