Patches to nbdiff for skipping noisy metadata, some local config

Nbdiff --ignore-details skils autoscroll, collapsed, deletable,
editable, toc (pull request on the way).
Enabling empty pass, no git pager, ignoring gitdiff nbdiff details.
This commit is contained in:
ziembla
2017-11-30 12:09:16 +01:00
parent 4453715759
commit 8d16b3061d
4 changed files with 60 additions and 15 deletions

11
docker/nbdime-2-toc.patch Normal file
View File

@@ -0,0 +1,11 @@
--- a/nbdime/diffing/notebooks.py
+++ b/nbdime/diffing/notebooks.py
@@ -553,7 +553,7 @@
del notebook_differs[key]
else:
notebook_differs[key] = diff_ignore_keys(
- inner_differ=diff, ignore_keys=['collapsed', 'autoscroll', 'deletable', 'editable'])
+ inner_differ=diff, ignore_keys=['toc', 'collapsed', 'autoscroll', 'deletable', 'editable'])
else:
for key in metadata_keys:
notebook_differs[key] = diff_ignore