Skip to content

discuss: set default value of --from-hash to first commit #26

@JustBipin

Description

@JustBipin

We've not yet implemented the hash-range feature, but I'm still leaving it here.

context:

upstream project, commitlint has its --to-hash flag optional with its default value set to HEAD. However, the --to-hash is a must.

Proposal:

In cocox, make --from-hash flag optional, and if it's not provided, cocox will lint commits all the way from the first commit

example:

 cocox --to-hash HEAD

But, --to-hash is also optional, so there is an option to not provide both --from-hash and --to-hash flags. which leaves us with just the command cocox .
So maybe we could have another flag like: cocox --all or all subcommand that lints all messages in the main branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions