quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH 1/2] quilt patches: Fix shift in scan_unapplied


From: Jean Delvare
Subject: [Quilt-dev] [PATCH 1/2] quilt patches: Fix shift in scan_unapplied
Date: Tue, 30 Apr 2013 14:35:16 +0200

Commit 2e581933 added a parameter to function scan_unapplied but the
corresponding shift wasn't adjusted accordingly. Apparently this bug
was harmless but there is a slight performance penalty so let's fix
it still.
---
 quilt/patches.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/quilt/patches.in
+++ b/quilt/patches.in
@@ -77,7 +77,7 @@ touched_by_patch()
 scan_unapplied()
 {
        local color=$1 prefix=$2 file=$3 strip
-       shift 2
+       shift 3
        local file_bre="$(quote_bre $file)" patch
 
        for patch in "$@"

-- 
Jean Delvare
Suse L3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]