fix(apply-patch) Support repeated @@ lines

This commit is contained in:
Dylan Hurd
2026-01-14 23:34:24 -08:00
parent 5675af5190
commit badd55aae3
6 changed files with 87 additions and 31 deletions
@@ -0,0 +1,10 @@
class BaseClass:
def method():
# to_add
pass
class OtherClass:
def method():
# untouched
pass
@@ -0,0 +1,11 @@
class BaseClass:
def method():
# to_remove
pass
class OtherClass:
def method():
# untouched
pass
@@ -0,0 +1,7 @@
*** Begin Patch
*** Update File: example.py
@@ class BaseClass:
@@ def method():
- # to_remove
+ # to_add
*** End Patch
@@ -0,0 +1,10 @@
class BaseClass:
def method():
# to_add
pass
class OtherClass:
def method():
# untouched
pass