diff options
Diffstat (limited to 'quilt/patches.in')
-rw-r--r-- | quilt/patches.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/quilt/patches.in b/quilt/patches.in index 1ecc77a..1c1b18c 100644 --- a/quilt/patches.in +++ b/quilt/patches.in @@ -50,6 +50,21 @@ scan_applied() done } +touched_by_patch() +{ + local strip=$1 patch=$2 + cat_file $(patch_file_name $patch) \ + | @AWK@ ' + /^\+\+\+[ \t]/ { + sub(/^\+\+\+[ \t]/, "") + sub(/[ \t].*/, "") + sub(/^\/dev\/null/, "") + for (i=0; i<'$strip'; i++) + sub(/^[^\/]*\//, "") + print + }' +} + scan_unapplied() { local prefix=$1 file=$2 |