git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-diff-tree -z HEAD | git-diff-helper -z fails for me

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 23, 2005, 09:02 UTC
Message-ID
<20050523090206.GJ23388@cip.informatik.uni-erlangen.de>

Hello, this fails:

	(faui00u) [~/work/git/yagf] git-diff-tree -z HEAD | git-diff-helper -z
	03c70739ae572ea9832b97dfcf9ca2594702efe8 (from 30e756ea8569bb429b7073b304acd8a960f77e4b)
	:100755 100755 f2e04c3b45b2a5ab5cf53228025158902c9de5be b93fd0310e51eea4d48d42c6ad83399cff8ab56egitgit(faui00u) [~/work/git/yagf]
But:
	(faui00u) [~/work/git/yagf] git-diff-tree -z HEAD 30e756ea8569bb429b7073b304acd8a960f77e4b | git-diff-helper -z
	diff --git a/git b/git
	--- a/git
	+++ b/git
	@@ -540,11 +540,11 @@ changes
		if (defined ($options{'L'})) {
			pull('-o', shift);
	-               system("git-rev-tree HEAD '^REMOTE_HEAD' | sed -e 's/^[0-9]* //' | git-diff-tree --stdin -v $git_diff_tree_options");
	+               system("git-rev-tree HEAD ^REMOTE_HEAD | sed -e 's/^[0-9]* //' | git-diff-tree --stdin -v $git_diff_tree_options");
		} elsif (defined ($options{'R'})) {
			pull('-o', shift);
	-               system("git-rev-tree REMOTE_HEAD '^HEAD' | sed -e 's/^[0-9]* //' | git-diff-tree --stdin -v $git_diff_tree_options");
	+               system("git-rev-tree REMOTE_HEAD ^HEAD | sed -e 's/^[0-9]* //' | git-diff-tree --stdin -v $git_diff_tree_options");
		} else {
			system("git-rev-list HEAD | git-diff-tree --stdin -v $git_diff_tree_options");
works? What I am doing wrong here?
	Thomas
Next: Junio C Hamano
Message 1 of 10 in “git-diff-tree -z HEAD | git-diff-helper -z fails for me”
  1. Thomas GlanzmannMay 23, 2005
  2. Junio C HamanoMay 23, 2005
  3. Linus TorvaldsMay 23, 2005
  4. Junio C HamanoMay 23, 2005
  5. Junio C HamanoMay 23, 2005
  6. Linus TorvaldsMay 23, 2005
  7. Junio C HamanoMay 24, 2005
  8. Fix diff-pruning logic which was running prune too early.Junio C Hamano, May 24, 2005
  9. interim report on a big screwup with diff -M and -C.Junio C Hamano, May 24, 2005
  10. Redo rename/copy detection logic.Junio C Hamano, May 24, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.