# https://git-scm.com/docs/gitattributes
#
# GitHub Linguist annotations
# - influence how files are shown in the GitHub diff view
#   https://github.com/github/linguist/blob/master/docs/overrides.md

# Hide stuff that is generated by nix-tools
nix/materialized/*/*.nix linguist-generated=true merge=binary

# Hide nix flake lock boilerplate
flake.lock linguist-generated=true

# Hide the Cabal freeze file
cabal.project.freeze linguist-generated=true

# Hide golden JSON files used for tests
# - they clog up the GitHub PR review page.
# Also set the "binary" merge mode for Git,
# because textual merging of auto-generated JSON rarely works well.
lib/unit/test/data/Cardano/Wallet/**/*.json linguist-generated=true merge=binary

# Include documentation in code stats
*.md linguist-detectable
*.md linguist-language=Markdown
*.md linguist-documentation=false
*.md text
