Jump to content
  • 0

How to apply .diff file?


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

I need help in applying a .diff file..

 

I somehow messed up my trunk files so I decided to re-download the latest rathena GIT (Since the one I messed up was also the latest GIT).

Before my files are messed up, I saved my all of my modifications using the 'Save unified diff' and created a .diff file.. Now, I was wondering on how could I apply this diff to my fresh rAthena trunk without applying them manually since it would take too much time..

 

I tried doing this: BTW im using Windows 7 OS

1) I put my .diff file inside my rathena folder. Then right click the diff file > TortoiseGIT > Apply Patch Serial

This is the result:

git.exe am --3way --ignore-space-change --keep-cr "C:\Users\LordGanja\Desktop\rAthena\mods.diff"
Patch does not have a valid e-mail address.

Fail

2) Because it failed, I put my email address on the TortoiseGIT settings under User Info (Config Source: Global),

then I tried to patch it again, I got the same error.

 

For all who can help, Thanks in advance!  /no1

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Git created patches are meant to be applied with Git tools. Use

git apply <patch>

If the patch is not created with Git, then just use a patch program 'behind the back' of Git. Often this is the program 'patch':

patch <patch>

After applying the patch, add and commit in Git as usual.

Edited by Winz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...