git-changelog-lib icon indicating copy to clipboard operation
git-changelog-lib copied to clipboard

How to sort commit messages?

Open FOhis opened this issue 8 years ago • 0 comments
trafficstars

Hello,

how can i sort commit messages depending on same tags in the commit message?

----8<----8< begin message format----8<----8< [scope] [type] titel

detailed information

some text [component] some text [customer]

----8<----8< end message format----8<----8<

with [scope]= Modul A or Modul B etc. [type]=new or change or fix or test or refactoring or test etc. [component]=component A or component B etc. [customer]=customer A or customer B etc.

I would like to generate a sorted changelog a) with full infomration for internal use b) with fewer information for external use

For filtering messages there is the regex Pattern within ignoreCommitsIfMessageMatches and maybe issue#53 (How to filter a message body item?)

But how can commit messages be sorted with adaptive possibilities in the name and sequence of scope, type, component and customer? example - format scope (level 1) type (level 2) component (level 3) customer (level 2)

example - log output
scope Modul A - heading Modul A type new - heading type new component A - heading component A message 1 message 2 component B - heading component B message 3 change - heading type change component C - heading component C message 4 fix - heading type fix component A - heading component A message 5 message 6 component B - heading component B message 7 heading customers customer A - heading customer A message 8 message 9 customer B - heading customer A message 10 Modul B - heading Modul B
fix - heading type fix component C - heading component C message 10

I use git-changelog-lib with git-changelog-command-line Tool.

Thank you very much FO

FOhis avatar Sep 29 '17 15:09 FOhis