Jump to content

How do I display a Git diff for a WAD?


printz

Recommended Posts

I have a PWAD in Git version control, I didn't commit the latest changes and now I don't know what exactly I changed. "git diff wadname.wad" doesn't show me anything. Is there a utility or filter that can help Git show me the differences, probably lump by lump?

Share this post


Link to post

I don't think there is.

Besides, most lumps are in binary format (especially if you're not modding for an advanced port), making diffs basically useless.

Share this post


Link to post
printz said:

Is there a utility or filter that can help Git show me the differences,

No, I don't think Git can do binary diffs. You'll have to check out both versions and use something like vbindiff.

printz said:

probably lump by lump?

No, that's not probable.

Share this post


Link to post

Yeah a visual binary diff is the way to go. I used such to find all the places where Strife 1.2 and 1.31 differed (all 5 or so of them, outside the changes to the menu system, which were also smaller than I thought they'd be).

Share this post


Link to post
Omegalore said:

What's a Git diff?

Git is a version control system - it keeps track of all changes you've made since the beginning, meaning that you can easily back everything up or go back in time to older versions. A diff (difference) is a comparison between two versions, showing what is different between a file at version X and the same file at version Y. More generally, 'diff' is usually the name of a utility which compares two files or pieces of data, showing the differences.

Share this post


Link to post

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...