From 7fd3c5ea27a4713cbd9673fd63970e2e0123d332 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jun 2016 12:19:21 +0100 Subject: [PATCH] Split brain: Rename $origtree to $unapplied (nfc) This is clearer. --- dgit | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dgit b/dgit index 97bd2831..77f8819e 100755 --- a/dgit +++ b/dgit @@ -2533,7 +2533,7 @@ sub quiltify_tree_sentinelfiles ($) { } sub quiltify ($$$) { - my ($clogp,$target,$origtree) = @_; + my ($clogp,$target,$unapplied) = @_; # Quilt patchification algorithm # @@ -2946,9 +2946,8 @@ END rmtree '.pc'; runcmd @git, qw(add -Af .); - my $origtree=git_write_tree(); - - printdebug "fake orig tree object $origtree\n"; + my $unapplied=git_write_tree(); + printdebug "fake orig tree object $unapplied\n"; ensuredir '.pc'; @@ -2968,7 +2967,7 @@ END rename '../fake/.pc','.pc' or die $!; } - quiltify($clogp,$headref,$origtree); + quiltify($clogp,$headref,$unapplied); if (!open P, '>>', ".pc/applied-patches") { $!==&ENOENT or die $!; -- 2.30.2