Skip to content

Commit

Permalink
doc: update document for --bump
Browse files Browse the repository at this point in the history
  • Loading branch information
braineo committed Jul 30, 2024
1 parent 4dc10e2 commit 822805a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-cliff-core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl Remote {
}
}

/// Verion bump type
/// Version bump type
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum BumpType {
/// Bump major version
Expand Down
2 changes: 1 addition & 1 deletion website/docs/usage/args.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ git-cliff [FLAGS] [OPTIONS] [--] [RANGE]
-h, --help Prints help information
-V, --version Prints version information
-v, --verbose... Increases the logging verbosity
--bump Bumps the version for unreleased changes
--bumped-version Prints bumped version for unreleased changes
-l, --latest Processes the commits starting from the latest tag
--current Processes the commits that belong to the current tag
Expand All @@ -28,6 +27,7 @@ git-cliff [FLAGS] [OPTIONS] [--] [RANGE]

```
-i, --init [<CONFIG>] Writes the default configuration file to cliff.toml
--bump Bumps the version for unreleased changes [default: auto] [possible values: auto, major, minor, patch]
-c, --config <PATH> Sets the configuration file [env: GIT_CLIFF_CONFIG=] [default: cliff.toml]
-w, --workdir <PATH> Sets the working directory [env: GIT_CLIFF_WORKDIR=]
-r, --repository <PATH>... Sets the git repository [env: GIT_CLIFF_REPOSITORY=]
Expand Down
9 changes: 9 additions & 0 deletions website/docs/usage/bump-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ A switch from `0` to `1` should indicate a higher API stability level.

You can modify the bumping rules to preserve the zero-based versioning scheme in the
[configuration file](/docs/configuration/bump).


## Bump to specific version type

Optionally you can specify bump type in `--bump`:

```bash
git cliff --bump [major|minor|patch]
```

0 comments on commit 822805a

Please sign in to comment.