Browse Source
When applying a patch that contains renames or copies using ApplyCommand, also apply all hunks that apply to the renamed or copied file. Change-Id: I9f3fa4370458bd7c14beeb2e2b49e846d70203cb Signed-off-by: Jack Wickham <jwickham@palantir.com>stable-5.8
Jack Wickham
5 years ago
committed by
Matthias Sohn
8 changed files with 66 additions and 3 deletions
@ -0,0 +1,13 @@
|
||||
diff --git a/CopyWithHunks b/CopyResult
|
||||
similarity index 75%
|
||||
copy from CopyWithHunks
|
||||
copy to CopyResult
|
||||
index 0000000..de98044
|
||||
--- a/CopyWithHunks
|
||||
+++ b/CopyResult
|
||||
@@ -1,4 +1,4 @@
|
||||
line1
|
||||
-line2
|
||||
+lineB
|
||||
line3
|
||||
line4
|
@ -0,0 +1,4 @@
|
||||
line1 |
||||
lineB |
||||
line3 |
||||
line4 |
@ -0,0 +1,4 @@
|
||||
line1 |
||||
line2 |
||||
line3 |
||||
line4 |
@ -0,0 +1,13 @@
|
||||
diff --git a/RenameWithHunks b/nested/subdir/Renamed
|
||||
similarity index 75%
|
||||
rename from RenameWithHunks
|
||||
rename to nested/subdir/Renamed
|
||||
index 0000000..de98044
|
||||
--- a/RenameWithHunks
|
||||
+++ b/nested/subdir/Renamed
|
||||
@@ -1,4 +1,4 @@
|
||||
line1
|
||||
-line2
|
||||
+lineB
|
||||
line3
|
||||
line4
|
@ -0,0 +1,4 @@
|
||||
line1 |
||||
lineB |
||||
line3 |
||||
line4 |
@ -0,0 +1,4 @@
|
||||
line1 |
||||
line2 |
||||
line3 |
||||
line4 |
Loading…
Reference in new issue