Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Allow for a single commit in the --commits cmd-line param #412

Merged
merged 1 commit into from
Jan 16, 2023

Commits on Jan 16, 2023

  1. cli: Allow for a single commit in the --commits cmd-line param

    In order to avoid applications needing to select between `--commit` and
    `--commits` based on the number of commits, allow for providing a single
    commit with `--commits` in the format:
    
    $ gitlint --commits <sha>,
    
    The trailing comma ensures that gitlint knows this is a commit list and
    not a refspec.
    
    Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
    carlescufi committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    4d30d46 View commit details
    Browse the repository at this point in the history