zoryn-commit(1)

ZORYN-COMMIT(1) Zoryn Manual ZORYN-COMMIT(1)

NAME

zoryn-commit - Commit with spec changelog as message.

SYNOPSIS

zoryn commit [OPTION]… [GIT-ARGS]…

DESCRIPTION

Create a git commit using the latest changelog entry from the spec file as the commit message. The changelog version-release becomes the subject line and the changelog text becomes the body.

Without options, finds the spec file automatically (via .gear/rules or single *.spec in repo root) and extracts the topmost changelog entry.

The message is opened in the same editor git commit would use (via git var GIT_EDITOR). Save the buffer to commit; exit without saving (vim :q!) to abort; empty message also aborts. Pass --no-edit to skip the editor and commit the prefilled message directly.

For vim-family editors (vim/vi/nvim/gvim) the message is piped through stdin and the buffer is renamed via :file, which makes vim mark it as modified — so ZZ / :wq / :x on an unchanged prefilled buffer all commit (unlike opening vim on a real file, where ZZ on an unchanged buffer is a no-op). For other editors, git orchestrates the editor itself (git commit -F file --edit).

ARGUMENTS

GIT-ARGS
Additional arguments for git commit.

OPTIONS

-a, --all
Stage all changes before committing.
--amend
Amend the last commit.
-C DIR
Change to directory DIR before running.
-d, --debug
Enable debug output.
-m TEXT, --message=TEXT
Use TEXT as commit message directly.
--no-edit
Skip the editor and commit the prefilled message directly.
--spec=FILE
Use specified spec file for changelog extraction.

COMMON OPTIONS

--help[=FMT] (default=auto)
Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.
--version
Show version information.

EXIT STATUS

zoryn commit exits with:

0
on success.
123
on indiscriminate errors reported on standard error.
124
on command line parsing errors.
125
on unexpected internal errors (bugs).

EXAMPLES

Commit using changelog from auto-detected spec:


zoryn commit

Commit with all staged and unstaged changes:


zoryn commit -a

Amend the last commit:


zoryn commit --amend

Use a specific spec file:


zoryn commit --spec .gear/mypackage.spec

Use a custom message instead of changelog:


zoryn commit -m 'fix build on aarch64'

Pass extra arguments to git commit:


zoryn commit -- --signoff

SEE ALSO

zoryn(1)

Zoryn 0.46.0