enhance: git format-patch

* use `--output=<file>` instead of `-o <dir>` to avoid failure because the directory cannot be created
* make generated patches in order when format multiple commits

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-22 18:40:59 +08:00
parent c50508d4ac
commit c78e2e59d9
No known key found for this signature in database
2 changed files with 41 additions and 11 deletions

View file

@ -6,7 +6,7 @@
{
WorkingDirectory = repo;
Context = repo;
Args = $"format-patch {commit} -1 -o \"{saveTo}\"";
Args = $"format-patch {commit} -1 --output=\"{saveTo}\"";
}
}
}