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.