only one patch file to patching multiple couples of files
Hello all.
I would like clarification about the structure of a patch file made with the "git diff" command.
First question. Are the SHA (Secure Hash Algorithm) codes contained in the file patch important? Let me explain better. Once the patch file is made, if I edit it with a text editor by adding or removing parts, the SHA codes not match with the new file content, is it right? Under these conditions, does the patch file still work correctly?
Second question. To make the patch file "my_file.patch" between two files "my_file1.txt" and "my_file2.txt" I use the command
git diff --no-index my_file1.txt my_file2.txt > ./my_file.patch
Let suppose now to have six files named "my_file1.txt", "my_file2.txt", "my_file3.txt", "my_file4.txt", "my_file5.txt" and "my_file6.txt". What is the way to create ONE ONLY patch file that compare and patches the couples my_file1.txt/my_file2.txt, my_file3.txt/my_file4.txt and my_file5.txt/my_file6.txt?
Many thanks
Regards
