Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: > On Fri, 4 May 2007, Dana How wrote: > > > Most commands accept relative paths, but this is > > not true of arguments in ent:path format. This > > patch makes all of the following git-show commands > > work in the git source tree (not just the first): > > % cd xdiff > > % git-show v1.5.2-rc0:xdiff/xemit.h > > % git-show v1.5.2-rc0:./xemit.h > > % git-show v1.5.2-rc0:../sha1_name.c > > ACK. Double ACK. I'm in complete agreement with every point Dscho has made in this thread, even if I haven't quoted it. ;-) I *really* do not want to see "<tree-ish>:<path>" to mean include the current prefix, *especially* when a bare repository is involved. I often either do ad-hoc git-show lines against bare repositories, or have scripts that depend on this existing absolute path behavior. I'd like to see those not break. ;-) Since "." and ".." should not be valid names in any tree of a Git repository I think we're OK to say that ":./" and ":../" are to imply relative to current prefix. But if we do ":../" then we also have to do ":../../../../../../.." ;-) -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html