@@ -22,22 +22,22 @@ func main() {
2222 var repoPath = flag .String ("p" , "." , "path to the repository, points to the current working directory by default" )
2323 var startCommit = flag .String ("s" , "" , "commit hash string start collecting commit messages from" )
2424 var endCommit = flag .String ("e" , "" , "commit hash string to stop collecting commit message at" )
25+ var inclusionFlags = flag .String ("i" , "" , "commit types to be includes, defaults to CI FIX REFACTOR FEATURE DOCS CHORE TEST OTHER" )
2526
2627 flag .Parse ()
2728
2829 path := repoPath
2930
30- err := CommitLog (* path , * startCommit , * endCommit )
31+ err := CommitLog (* path , * startCommit , * endCommit , * inclusionFlags )
3132
3233 if err .err != nil {
3334 log .Fatal (err .message , err .err )
3435 }
3536}
3637
3738// CommitLog - Generate commit log
38- func CommitLog (path string , startCommitString string , endCommitString string ) ErrMessage {
39+ func CommitLog (path string , startCommitString string , endCommitString string , inclusionFlags string ) ErrMessage {
3940 currentRepository := openRepository (path )
40-
4141 baseCommitReference , err := currentRepository .Head ()
4242 var startHash , endHash * object.Commit
4343 var cIter object.CommitIter
0 commit comments