Re: behaviour of git diff, GIT_DIR & checked out tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Tweed
Date: Monday, September 24, 2007 - 6:16 am

On 9/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Thanks of your reply; however I suspect this isn't the problem
here since I just tried with just master and I get the same thing.
To be clear, I'm doing this on the same machine with the same
user account as the git directory, just from a directory outside
the git tree, eg, the git tracked tree is in $HOME/V and I'm
in $HOME/A running

env GIT_DIR=$HOME/V/.git git diff master

As a guess without looking at the code, what I imagine
is happening is that git diff limits showing changes to the directory
tree below $PWD, and when $PWD isn't actually within the git
dir that ends up somehow as an empty tree.

-- 
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"we had no idea that when we added templates we were adding a Turing-
complete compile-time language." -- C++ standardisation committee
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
behaviour of git diff, GIT_DIR &amp; checked out tree, David Tweed, (Mon Sep 24, 5:45 am)
Re: behaviour of git diff, GIT_DIR &amp; checked out tree, Johannes Schindelin, (Mon Sep 24, 6:03 am)
Re: behaviour of git diff, GIT_DIR & checked out tree, David Tweed, (Mon Sep 24, 6:16 am)
Re: behaviour of git diff, GIT_DIR &amp; checked out tree, Junio C Hamano, (Mon Sep 24, 9:47 am)
Re: behaviour of git diff, GIT_DIR &amp; checked out tree, Junio C Hamano, (Mon Sep 24, 11:31 am)