|
|
|
|
|
by eLobato
4231 days ago
|
|
Interesting, that makes sense. I'll check if the rest of the team would be ok with forcing commits to use colon as a separator until that feature is added. :) Still, what does %{scope} actually catch? Anything that's not %{type}, %{description} or an explicit character? |
|
So the match is exact between the non %{..} characters. The idea for scope is the context of the commit, in my libraries I use the name of the class as the scope.
For example with the default format string:
So any literal characters are matched exactly and anything inside the capturing %{...} is assigned to that variable.This does fall over in the following case:
It is certainly a candidate for improvement in the future.