Back to Sapling

Split

website/docs/commands/split.md

latest940 B
Original Source

split | spl

<!-- @generated SignedSource<<fa0db9f9a570d3f38bbf26c2ae510f96>> Run `./scripts/generate-command-markdown.py` to regenerate. -->

split a commit into smaller commits

Prompt for hunks to be selected until exhausted. Each selection of hunks will form a separate commit, in order from parent to child: the first selection will form the first commit, the second selection will form the second commit, and so on.

Operates on the current revision by default. Use --rev to split a given commit instead.

arguments

shortnamefullnamedefaultdescription
-r--revrevision to split
--no-rebasefalsedon't rebase descendants after split
-m--messageuse text as commit message
-l--logfileread commit message from file
-d--daterecord the specified date as commit date
-u--userrecord the specified user as committer