Skip to content

Commit

Permalink
doc: adjust the help text
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Feb 3, 2025
1 parent 34338db commit 1a2a8cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions branch_squash.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ func (*branchSquashCmd) Help() string {
return text.Dedent(`
Squash all commits in the current branch into a single commit
and restack upstack branches.
An editor will open to edit the commit message of the squashed commit.
Use the -m/--message flag to specify a commit message without editing.
`)
}

Expand Down
3 changes: 3 additions & 0 deletions doc/includes/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,9 @@ Squash a branch into one commit
Squash all commits in the current branch into a single commit
and restack upstack branches.

An editor will open to edit the commit message of the squashed commit.
Use the -m/--message flag to specify a commit message without editing.

**Flags**

* `--no-verify`: Bypass pre-commit and commit-msg hooks.
Expand Down

0 comments on commit 1a2a8cd

Please sign in to comment.