| name | sase_hg_commit |
| description | Commit changes using sase commit for Google's fig VCS. This skill is the ONLY way that you should EVER commit to fig
repos. NEVER invoke this skill unless the user explicitly asks you to commit or a post-completion finalizer triggers
it.
|
Before doing anything else, run this command to record that you are using this skill:
sase skill use sase_hg_commit --reason "<one-line reason for using this skill>"
Commit changes via the sase commit command.
Instructions
-
Examine uncommitted changes — Run hg status or hg diff to understand what files have changed and why.
-
Write a commit message file — Create a file (e.g., commit_message.md) containing a good commit message.
-
Run the commit — Execute:
sase commit -M commit_message.md -f file1.py -f file2.py
Flags:
-M: Path to file containing the commit message. The file is deleted after reading.
-m: Inline commit message string (alternative to -M). -m and -M are mutually exclusive.
-f: File to include (repeat for multiple files). Omit to include all changes.
--name: CL name (only needed for create_pull_request method).
The $SASE_COMMIT_METHOD environment variable is read automatically to determine the dispatch method
(create_commit, create_proposal, or create_pull_request). Do NOT pass --type unless you need to override.
Example
sase commit -M commit_message.md -f auth.py -f login.py
On Merge Conflict
If sase commit exits with code 2 and prints a "merge conflict" message, the local repository is in a paused
evolve/rebase state and the post-commit bookkeeping has been deferred. Do NOT re-run the original sase commit command.
Instead, resolve the conflict and finalize:
- Find conflicted files: Run
hg resolve --list (lines starting with U are unresolved).
- Read each file and resolve conflict markers. Prefer the INCOMING version when uncertain.
- Mark resolved: Run
hg resolve --mark <file> for each.
- Continue the rebase/evolve: Run
hg rebase --continue (or hg evolve --continue). Repeat steps 1–4 until clean.
- Verify the working tree is clean:
hg status should be empty.
- Finalize the sase commit: Run
sase commit --resume.