# Add a new file that was copied. This verifies the raw diff parser handles copies.
cat > first <<EOT
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation
ullamco laboris nisi ut aliquip
ex ea commodo consequat.
EOT
git add -A
git commit -q -m 'Initial commit'
git branch downstream
cp first copied
git add -A
git commit -q -m 'A copy'
cat > copied <<EOT
Lorem ipsum dolor sit amet,
CONSECTETUR adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation
ullamco laboris nisi ut aliquip
ex ea commodo consequat.
EOT
cat > third <<EOT
Duis aute irure dolor in reprehenderit
in voluptate velit esse cillum dolore
eu fugiat nulla pariatur.
EOT
git add third
git commit -q -a -m 'A change'
git tag source
git checkout -q downstream
patchpal source
match <<EOT
commit %sha
Author: A Developer <developer@example.com>
Date:   %date

    A change
    
    commit %sha[source]
    Author: A Developer <developer@example.com>
    Date:   %date
    
        A change
    
    Conflicts:
    - copied: 1 hunk omitted
    
    (cherry picked from commit %sha[source])
    Assisted-by: Patchpal
    Signed-off-by: A Developer <developer@example.com>

diff --git a/third b/third
new file mode 100644
index 000000000000..%short
--- /dev/null
+++ b/third
@@ -0,0 +1,3 @@
+Duis aute irure dolor in reprehenderit
+in voluptate velit esse cillum dolore
+eu fugiat nulla pariatur.
EOT
