Fix the fixes alias to work on Windows

Apparently Windows doesn't have normal things.  Like sed.  Or tail.  So,
we need to use git langauge instead
This commit is contained in:
Seth Hillbrand 2021-09-30 10:11:07 -07:00
parent c4fcff46ab
commit 455f6fadac
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
# git config --add include.path $(pwd)/helpers/git/fixes_alias
fixes = "!f() { \
COMMIT_MSG=$(git log -1 --format=medium | tail -n +5 | sed -e 's/^ //'); \
COMMIT_MSG=$(git log -n1 --format=%B); \
git commit --amend -m \"${COMMIT_MSG}\n\nFixes https://gitlab.com/kicad/code/kicad/issues/$1\"; \
}; f"