Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPSDBMove line-ending and encoding policy
#
# PowerShell files run under Windows PowerShell 5.1 on SharePoint servers. Without a
# BOM, Windows PowerShell 5.1 reads .ps1/.psm1/.psd1 as ANSI (the system code page),
# which corrupts any non-ASCII character. We therefore store all PowerShell files as
# UTF-8 with BOM (the BOM is part of the committed content) and check them out with
# CRLF line endings (native on the target servers).
#
# YAML, Markdown and other text files must NOT carry a BOM (it breaks some YAML
# parsers and is unwanted on GitHub-rendered files); they use LF.

* text=auto eol=lf

# PowerShell -- committed with a UTF-8 BOM, checked out with CRLF
*.ps1 text eol=crlf
*.psm1 text eol=crlf
*.psd1 text eol=crlf

# Workflows / docs / config -- no BOM, LF
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
*.json text eol=lf

# Binary artifacts (release ZIP, screenshots)
*.dll binary
*.png binary
*.zip binary
2 changes: 1 addition & 1 deletion scripts/SPSDBMove.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Version 7.0
#Requires -Version 7.0

<#
.SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion tests/SPSDBMove.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Version 7.0
#Requires -Version 7.0
#Requires -Modules @{ ModuleName='Pester'; ModuleVersion='5.3.0' }

<#
Expand Down
Loading