[PATCH 3/2] merge-trees script for Linus git
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 15, 2005, 23:33 UTC
- Message-ID
- <7vmzrzfwe4.fsf_-_@assigned-by-dhcp.cox.net>
- In-Reply-To
- <7vfyxrhfsw.fsf_-_@assigned-by-dhcp.cox.net>
Linus,
the merge-trees I sent you earlier was expecting the old diff-tree behaviour, and I did not realize that I need an explicit -z flag now. Here is a fix.
Signed-off-by: Junio C Hamano <junkio@cox.net> --- merge-trees | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
--- merge-trees 2005-04-15 13:21:35.000000000 -0700 +++ merge-trees+ 2005-04-15 16:27:34.000000000 -0700
@@ -78,8 +78,8 @@ local ($_, $/); $/ = "\0"; my %path; - open $fhi, '-|', 'diff-tree', '-r', @tree - or die "$!: diff-tree -r @tree"; + open $fhi, '-|', 'diff-tree', '-r', '-z', @tree + or die "$!: diff-tree -r -z @tree"; while (<$fhi>) { chomp; if (/^\*($reM)->($reM)\tblob\t($reID)->($reID)\t(.*)$/so) {