Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/quilt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ pub fn read_quilt_series<R: std::io::Read>(mut reader: R) -> std::path::PathBuf
s.into()
}

/// Patch strip options
pub fn get_patch_strip_options() -> &'static [(&'static str, &'static str)] {
Comment thread
lucasly-ba marked this conversation as resolved.
&[
("-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
Expand Down