SKalt / git-cc

a git extension to help write conventional commits
Other
91 stars 9 forks source link

feature request: allow using subdirs as scopes #31

Closed SKalt closed 3 months ago

SKalt commented 1 year ago

like pkg/* should let me use any of the pkg/* directories' names as scopes.

SKalt commented 3 months ago

On further thought, I think a simple script that generates all or part of the repo's config file should be sufficient -- something like

#!/bin/sh
find pkg -type d -maxdepth 1 -mindepth 1 | sed 's#^pkg/##g'

And then use something like cog or shout to inline the output