Skip to content

Commit

Permalink
.gitattributes: Hide Documentation/_static.
Browse files Browse the repository at this point in the history
Treat Documentation/_static and SVG files as binary in git so that when
performing a git diff or git grep, it prints just one line diff rather
than matching the content of some terse javascript file. This reduces
the noise greatly for greps of short strings to instead print the
following:

    $ git grep "\.fo"
    Binary file Documentation/_static/copybutton.js matches

Signed-off-by: Joe Stringer <joe@cilium.io>
  • Loading branch information
joestringer committed Jul 20, 2021
1 parent 901afa5 commit e711053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ examples/kubernetes/connectivity-check/connectivity-*.yaml linguist-generated
pkg/k8s/apis/cilium.io/v2/client/crds/*.yaml linguist-generated
Documentation/cmdref/** linguist-generated
Documentation/helm-values.rst linguist-generated
Documentation/_static/* -diff
*svg -diff

0 comments on commit e711053

Please sign in to comment.