git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] contrib/diffall: change comment to reflect actual reason for 'cdup'
@ 2012-03-13 17:45 Tim Henigan
  2012-03-13 17:45 ` [PATCH 2/4] contrib/diffall: teach diffall to create tmp dirs without using mktemp Tim Henigan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tim Henigan @ 2012-03-13 17:45 UTC (permalink / raw)
  To: git, gitster; +Cc: tim.henigan

The comment from an earlier commit did not reflect the actual reason this
operation is needed.

Signed-off-by: Tim Henigan <tim.henigan@gmail.com>
---
 contrib/diffall/git-diffall |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/diffall/git-diffall b/contrib/diffall/git-diffall
index 9bbd27f..d706a6d 100755
--- a/contrib/diffall/git-diffall
+++ b/contrib/diffall/git-diffall
@@ -36,7 +36,9 @@ fi
 
 start_dir=$(pwd)
 
-# needed to access tar utility
+# All the file paths returned by the diff command are relative to the root
+# of the working copy. So if the script is called from a subdirectory, it
+# must switch to the root of working copy before trying to use those paths.
 cdup=$(git rev-parse --show-cdup) &&
 cd "$cdup" || {
 	echo >&2 "Cannot chdir to $cdup, the toplevel of the working tree"
-- 
1.7.10.rc0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-13 17:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-13 17:45 [PATCH 1/4] contrib/diffall: change comment to reflect actual reason for 'cdup' Tim Henigan
2012-03-13 17:45 ` [PATCH 2/4] contrib/diffall: teach diffall to create tmp dirs without using mktemp Tim Henigan
2012-03-13 17:45 ` [PATCH 3/4] contrib/diffall: teach diffall to handle working copy changes without tar Tim Henigan
2012-03-13 17:45 ` [PATCH 4/4] contrib/diffall: eliminate duplicate while loops Tim Henigan
2012-03-13 17:49 ` [PATCH 1/4] contrib/diffall: change comment to reflect actual reason for 'cdup' Tim Henigan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).