Skip to content

Commit 3608150

Browse files
committed
SKIP: Script for patch preparation
1 parent c392898 commit 3608150

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

create-patch.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
param(
2+
[Parameter(Mandatory=$true, Position=0)]
3+
[string]$Revision,
4+
5+
[Parameter(Mandatory=$false, Position=1)]
6+
[string]$Version
7+
)
8+
9+
$Arguments = @(
10+
"--filename-max-length=999"
11+
"--signoff"
12+
"$Revision^1..$Revision"
13+
)
14+
15+
if ($Version) {
16+
$Arguments += "-v$Version"
17+
}
18+
19+
git format-patch $Arguments

0 commit comments

Comments
 (0)