{CI} Set LF line endings for Git hooks and generated files#33083
{CI} Set LF line endings for Git hooks and generated files#33083
Conversation
Ensure LF line endings for Git hook scripts and generated index assets.
️✔️AzureCLI-FullTest
|
|
Hi @notyashhh, |
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
/azp run Azure.azure-cli (Check the Format of Pull Request Title and Content) |
|
No pipelines are associated with this pull request. |
|
/azp run "Azure.azure-cli (Check the Format of Pull Request Title and Content)" |
|
No pipelines are associated with this pull request. |
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR updates repository line-ending rules to ensure Git hook scripts use LF, reducing cross-platform execution issues and churn in generated assets.
Changes:
- Add
.githooks/pre-commitand.githooks/pre-pushto.gitattributeswitheol=lfto force LF line endings for extensionless hook scripts. - Keep generated “latest” index JSON assets explicitly pinned to LF to avoid cross-platform diffs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ensure LF line endings for Git hook scripts and generated index assets.
Related command
Description
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.