diff options
author | Nao Pross <np@0hm.ch> | 2021-05-15 19:42:45 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-05-15 19:42:45 +0200 |
commit | 281f417351056dd9d692b0ed2a8b946ea03f41c9 (patch) | |
tree | f83c5f9bf64a365dae2884bc3576b7527790f761 | |
download | bomb-281f417351056dd9d692b0ed2a8b946ea03f41c9.tar.gz bomb-281f417351056dd9d692b0ed2a8b946ea03f41c9.zip |
Prepare git for kicad
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | hw/.gitattributes | 2 | ||||
-rw-r--r-- | hw/.gitignore | 7 | ||||
-rwxr-xr-x | hw/filters.sh | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/hw/.gitattributes b/hw/.gitattributes new file mode 100644 index 0000000..c539e86 --- /dev/null +++ b/hw/.gitattributes @@ -0,0 +1,2 @@ +*.pro filter=kicad_project +*.sch filter=kicad_sch diff --git a/hw/.gitignore b/hw/.gitignore new file mode 100644 index 0000000..f694806 --- /dev/null +++ b/hw/.gitignore @@ -0,0 +1,7 @@ +# export files for BOM +*.csv +*.tsv +*.xml + +# backup files +*.bak diff --git a/hw/filters.sh b/hw/filters.sh new file mode 100755 index 0000000..87ef066 --- /dev/null +++ b/hw/filters.sh @@ -0,0 +1,4 @@ +git config --local filter.kicad_sch.clean "sed -E 's/#(PWR|FLG)[0-9]+/#\1?/'" +git config --local filter.kicad_sch.smudge cat +git config --local filter.kicad_project.clean "sed -E 's/^update=.*$/update=Date/'" +git config --local filter.kicad_project.smudge cat |