Skip to content

Commit d63f73d

Browse files
committed
Skip comments in series file
1 parent 07d05de commit d63f73d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/patchable/src/patch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ fn patch_files(patch_dir: &Path) -> Result<Vec<PathBuf>> {
128128
"series file found, treating as stgit series"
129129
);
130130
file.lines()
131+
// Skip comment lines
132+
.filter(|line| !line.starts_with('#'))
131133
.map(|file_name| patch_dir.join(file_name))
132134
.collect::<Vec<_>>()
133135
}

0 commit comments

Comments
 (0)