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?