diff --git a/apply.go b/apply.go index 20ca07b..fdde423 100755 --- a/apply.go +++ b/apply.go @@ -87,6 +87,11 @@ func applyPatch(patchPath, rootPath string) error { for scanner.Scan() { line := scanner.Text() + // Ignore lines starting with // + if strings.HasPrefix(strings.TrimSpace(line), "//") { + continue + } + // Detect the target file if strings.HasPrefix(line, "--- ") { relativePath := strings.TrimSpace(strings.TrimPrefix(line, "--- "))