From 2101d9c47157b16a4eeb74382b4eec12044c07c2 Mon Sep 17 00:00:00 2001 From: Yash <55773468+notyashhh@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:53:39 +1100 Subject: [PATCH] Set LF line endings for Git hooks and generated files Ensure LF line endings for Git hook scripts and generated index assets. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitattributes b/.gitattributes index 8ae308ad2a7..56ca767d4b0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -16,6 +16,10 @@ build_scripts/windows/scripts/az eol=lf # sh scripts should be LF *.sh eol=lf +# Git hook scripts (no extension) should be LF to work on macOS/Linux +.githooks/pre-commit eol=lf +.githooks/pre-push eol=lf + # Generated latest index assets should always use LF to avoid cross-platform churn src/azure-cli-core/azure/cli/core/commandIndex.latest.json text eol=lf src/azure-cli-core/azure/cli/core/helpIndex.latest.json text eol=lf