Skip to content

Compare two files and get the lines that are different.

License

Notifications You must be signed in to change notification settings

luca-jt/FileCompare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Did you ever want to easily compare two files to see which lines got added/deleted in a different version - similar to a
git diff - but only highlight the lines that are actually different?
→ This is your solution!
A short script that goes through your files and creates a .patch file doing exactly that.

Requirements

At least Python 3.10

Usage

  • First, change the commented file variables at the top of the code for actual use.
  • python3 compare_files.py <file1> <file2>
    Changes will be stored in diff.patch.

Info

Created .patch file is not useful for actual git diff usage.

About

Compare two files and get the lines that are different.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages