Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-commit-each: expand shard handling
Besides a-z shard directories, homebrew/cask also has numeric ones like `0`, `1`, etc., as well as multi-level `font` directories like `font/font-0`, `font/font-a`, etc. The existing patterns in `git-commit-each` don't handle these directories, so I recently encountered commit messages like `8/8bitdo-ultimate-software: update url, livecheck` and `font/font-h/font-hermit: update homepage` when using this script. This updates `git-commit-each` to handle these directories as well. I've set up the font pattern so it will handle the existing `font/font-a` structure but would also handle files in `font/` itself. That said, it appears that `sed` on macOS can't handle optional groups like `(something)?` without enabling support for extended regular expressions (`-E`), so I've used `{0,1}` to achieve the same goal.
- Loading branch information