# =============================================================================
# 換行符政策
# -----------------------------------------------------------------------------
# 這個 repo 的 .ttl 只在 Windows（Tera Term）上跑，其餘文字檔可能在 Linux 上處理，
# 所以必須明確指定，不能靠各機器的 core.autocrlf。
#
# 姊妹專案 Blanton_TTL_Script 踩過的坑：bash 腳本帶著 CRLF 進 repo，
# scp 到 DUT 後直接掛（-bash: $'\r': command not found）。
# 本專案目前沒有 .sh，但規則先立好，之後加工具腳本就不會再踩。
# =============================================================================

# Tera Term macro 只在 Windows 上跑，維持 CRLF；標成 -text 讓 git 原樣保存，
# 避免對既有檔案產生大量純換行符的假 diff
*.ttl   -text

# 在 Linux 上執行或被 source 的，一律 LF
*.sh    text eol=lf
*.conf  text eol=lf
*.py    text eol=lf
*.yml   text eol=lf
*.txt   text eol=lf
*.md    text eol=lf

# 二進位，不要做任何轉換
*.xlsx  binary
*.docx  binary
*.pdf   binary
*.h5    binary
