Re: [PATCH] Support ent:relative_path
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 4, 2007, 19:31 UTC
- Message-ID
- <Pine.LNX.4.64.0705042127390.4015@racer.site>
- In-Reply-To
- <7v1whwtmvj.fsf@assigned-by-dhcp.cox.net>
Hi,
On Fri, 4 May 2007, Junio C Hamano wrote:
Show 8 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > > FWIW I still find that unintuitive. I know "<something>:<path>" from ssh, > > and there it does not change meaning depending on where I am. IMHO in most > > cases you want to use git-diff anyway, which _does_ honour the current > > relative path. > > There, its meaning is relative to where you are, namely "$HOME".
No, it is relative to where I am _at the other end_. If I "cd /tmp", it still is relative to $HOME.
Now, what you want to do is changing the meaning of v1.5.1:Makefile, depending if you "cd Documentation/"ed or not.
For me, "v1.5.1:" means something similar to ssh: it is a distant revision. It is not a complete filesystem. I think of revisions as something more general than a directory, but less general than a filesystem. And thus, it makes perfect sense to me that "v1.5.1:Makefile" means the main Makefile, no matter where I am in the current repository.
Now, I agree that often you want to compare some file in the current directory to the corresponding file in a certain revision. That is why git-diff has a different idea, and indeed, a different notation, too.
Ciao, Dscho