-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve top level comments on update of imports (#55)
Fixes #54
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- in.patch -- | ||
@@ | ||
var randomIdentifier identifier | ||
@@ | ||
-import "cmd/internal/edit" | ||
+import "github.com/foo/bar/internal/edit" | ||
|
||
edit.randomIdentifier | ||
|
||
-- comment.in.go -- | ||
// Copyright 2022 ... | ||
|
||
package main | ||
|
||
import ( | ||
"cmd/internal/edit" | ||
) | ||
|
||
func main() { | ||
_ = edit.Buffer | ||
} | ||
|
||
-- comment.out.go -- | ||
// Copyright 2022 ... | ||
|
||
package main | ||
|
||
import "github.com/foo/bar/internal/edit" | ||
|
||
func main() { | ||
_ = edit.Buffer | ||
} |