Skip to content

Commit

Permalink
git: add experimental CSV diff
Browse files Browse the repository at this point in the history
  • Loading branch information
benknoble committed Nov 12, 2024
1 parent 24267b1 commit 6629644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions links/gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ Pipfile.lock diff=json
*.ins diff=tex
*.yaml diff=yq
*.yml diff=yq
*.csv diff=csv
2 changes: 2 additions & 0 deletions links/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
textconv = "f(){ gron \"$1\" 2>/dev/null || cat \"$1\"; }; f"
[diff "yq"]
textconv = "f(){ yq -P eval 'sort_keys(..)' \"$1\" 2>/dev/null || cat \"$1\"; }; f"
[diff "csv"]
textconv = "f() { mlr --csv cat \"$1\" || true; }; f"
[difftool]
prompt = no
[merge]
Expand Down

0 comments on commit 6629644

Please sign in to comment.