Browse Source

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
6.0.7
Seth Hillbrand 4 years ago
parent
commit
455f6fadac
  1. 2
      helpers/git/fixes_alias

2
helpers/git/fixes_alias

@ -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"

Loading…
Cancel
Save