Browse Source
Before this change, applying a patch will fail if the destination directory doesn't exist; after, the necessary parent directories are created. If renaming the file fails, the directories won't be deleted, so this change isn't atomic. However, ApplyCommand is already not atomic - if one hunk fails to apply, other hunks still get applied - so I don't think that is a blocker. Change-Id: Iea36138b806d4e7012176615bcc673756a82f365 Signed-off-by: Jack Wickham <jwickham@palantir.com>stable-5.8
Jack Wickham
5 years ago
committed by
Matthias Sohn
5 changed files with 23 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||||
|
diff --git a/RenameNoHunks b/nested/subdir/Renamed
|
||||||
|
similarity index 100%
|
||||||
|
rename from RenameNoHunks
|
||||||
|
rename to nested/subdir/Renamed
|
@ -0,0 +1,4 @@ |
|||||||
|
line1 |
||||||
|
line2 |
||||||
|
line3 |
||||||
|
line4 |
@ -0,0 +1,4 @@ |
|||||||
|
line1 |
||||||
|
line2 |
||||||
|
line3 |
||||||
|
line4 |
Loading…
Reference in new issue