diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-04-01 20:00:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 20:00:24 +0100 |
| commit | 1c7fb21246629d6d5c7dd5d6eaf646339c57ab1c (patch) | |
| tree | ba9735a961dad142814692add6c56d55be789a06 /tests/patch/patch_common.h | |
| parent | 85533f374b80b03a098e27123cc5f01a6cccb989 (diff) | |
| parent | 5f47cb48d388279f92d339a5a791040254ee4d1c (diff) | |
| download | libgit2-1c7fb21246629d6d5c7dd5d6eaf646339c57ab1c.tar.gz | |
Merge pull request #5466 from pks-t/pks/patch-modechange-with-rename
patch: correctly handle mode changes for renames
Diffstat (limited to 'tests/patch/patch_common.h')
| -rw-r--r-- | tests/patch/patch_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/patch/patch_common.h b/tests/patch/patch_common.h index 731524767..1e03889fc 100644 --- a/tests/patch/patch_common.h +++ b/tests/patch/patch_common.h @@ -579,6 +579,14 @@ "rename from file.txt\n" \ "rename to newfile.txt\n" +#define PATCH_RENAME_EXACT_WITH_MODE \ + "diff --git a/RENAMED.md b/README.md\n" \ + "old mode 100644\n" \ + "new mode 100755\n" \ + "similarity index 100%\n" \ + "rename from RENAMED.md\n" \ + "rename to README.md\n" + #define PATCH_RENAME_SIMILAR \ "diff --git a/file.txt b/newfile.txt\n" \ "similarity index 77%\n" \ |
