Home > Software design >  Is there a way to develop a custom Git comparison extension?
Is there a way to develop a custom Git comparison extension?

Time:10-11

Consider the *.ipynb file extension. This is a text file formatted for use as a Jupyter Notebook.

git diff for these files is impossible to decipher. Merging operations are able to make changes that break the notebook format.

Is there a way to write a plugin or extension for Git which provides custom diffing and merging logic based on file extension?

CodePudding user response:

Yes you can, using Git filters

There are also a few tools that do this for Jupyter Notebooks, for example nbdime or nbstripout, both support Git filters.

  • Related