Skip to content

support patches with comments #165

@ccoVeille

Description

@ccoVeille

I'm trying to use patch to perform something like this

@@
var f identifier
@@
-func f(t *testing.T) {
+func f(t *testing.T) {
+   t.Helper() // my comment
+
+   t.Helper()
    ...
}

This code is part of a bigger patch and code reorganization. So this is a code to replicate the issue/question I want to talk about.

My issues right now are that:

  • the code adds the t.Helper() but not the comment
  • the new line is not added

I would like to know if I'm not missing something obvious

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions