forked from fastai/fastai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
40 lines (38 loc) · 1.19 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# You need to enable this configuration once after checking out the repo
# for the first time (assuming you checked it out into fastai/ dir):
#
# cd fastai
# git config --local include.path ../.gitconfig
#
# If you need to disable this instrumentation do:
#
# git config --local --unset include.path
#
# You can always check .git/config to see whether a ../.gitconfig
# [include] entry is there or not.
#
# If tools/fastai-nbstripout is modified to produce a different output,
# manually rerun all the notebooks under git:
#
# tools/fastai-nbstripout -d courses/*/*ipynb examples/*ipynb
# # disable the strip out filter to get git to see changes
# git config --local --unset include.path
# git commit -a
# git push
# # restore the filter
# git config --local include.path ../.gitconfig
#
# code notebooks strip out
[filter "fastai-nbstripout-code"]
clean = tools/fastai-nbstripout
smudge = cat
required = true
[diff "ipynb-code"]
textconv = tools/fastai-nbstripout -t
# docs notebooks strip out
[filter "fastai-nbstripout-docs"]
clean = tools/fastai-nbstripout -d
smudge = cat
required = true
[diff "ipynb-docs"]
textconv = tools/fastai-nbstripout -dt