From 8cdd240368998ef9232caf755ba0035d3ec7cea0 Mon Sep 17 00:00:00 2001 From: Lucas Ly Ba Date: Tue, 7 Apr 2026 12:47:55 +0200 Subject: [PATCH] add patch strip options helper --- src/quilt.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/quilt.rs b/src/quilt.rs index cc28a31..4d89ebb 100644 --- a/src/quilt.rs +++ b/src/quilt.rs @@ -253,6 +253,15 @@ pub fn read_quilt_series(mut reader: R) -> std::path::PathBuf s.into() } +/// Patch strip options +pub fn get_patch_strip_options() -> &'static [(&'static str, &'static str)] { + &[ + ("-p0", "No path stripping"), + ("-p1", "Strip 1 path component (default)"), + ("-p2", "Strip 2 path components"), + ] +} + /// A quilt patch pub struct QuiltPatch { /// The name of the patch