Posts
All the articles I've posted.
-
Parse git merge commit messages
PowerShell function with regex patterns to parse git's auto-generated merge commit messages and extract branch names.
-
Useful git hooks - Part 4
Summary of an expanded git hooks suite enforcing branch merge order, rebase safety, TeamCity build status, and push timing rules.
-
WTF_ PowerShell 3 _ Cygwin
PowerShell -Version 2 flag is ignored when launched from Cygwin, always running PowerShell 3 instead.
-
PowerShell 3 bug with stack trace
PowerShell 3 shows incorrect line numbers in stack traces when CmdletBinding and ErrorActionPreference are combined; trap workaround included.
-
PowerShell $PSScriptRoot vs dot-sourcing
Bug in PowerShell 2 where dot-sourcing overwrites $PSScriptRoot; workaround using a function instead of a variable.
-
Useful git hooks - Part 3
Completion of the git hooks suite with functional tests using PoshUnit and UI Automation PowerShell Extensions.
-
PowerShell script best practices
Best practices for PowerShell scripts: error handling preamble, strict mode, PSScriptRoot, and readability rules.
-
WTF Method overloads resolution in PowerShell
PowerShell resolves .NET method overloads differently from C#, causing unexpected method calls with bool arguments.
-
Indent styles holy wars
Discussion of Allman vs K&R brace styles across C#, JavaScript, CSS, and PowerShell.
-
PoshUnit
Announcement of PoshUnit, a new portable PowerShell unit testing framework inspired by NUnit.