Command reference. Internals: AGENTS.md. Anchors:
ANCHORS.md.
$ rgit diff
auth.go ValidateToken +12/-3
oldHelper DELETED +0/-14
@imports +1/-0
(unanchorable) +2/-0 -> use --file auth.go
Makefile (no symbols) +2/-0
newfile.go @header +2/-0
NewFunc +13/-0
config.ini (untracked) +4/-0 -> use --file config.ini
script.sh (mode 644->755) +0/-0 -> use rgit commit script.sh
logo.png (binary) -/-
$ rgit commit -m "auth: reject expired tokens" \
auth.go:ValidateToken auth.go:@importsAn untracked file with a grammar attributes per symbol. config.ini and
binaries collapse to one (untracked) row.
-C <path> before the command. --version only before the command (or
as rgit version). --json and -h/--help before or after it.
--json prints one object on stdout (diff, commit, log, context,
languages, doctor, symbols, find, land) and nothing else there. Human narration
stays on stderr. Other commands: 129. Envelope:
CODES.md.
-C <path> is git -C: discover the repo from there; relative pathspecs
and anchors resolve against it. Must precede the command — git commit -C
already means reuse a message. Repeats accumulate (-C a -C b is
-C a/b); -C "" is a no-op. Missing argument: 129. Unenterable: 128.
Glued -C<path> is 129, as in git.
Positionals carry pathspecs, revisions, and anchors. --file and --sym
are explicit equivalents.
Git pathspec magic is leading-colon. An interior colon is free for
FILE:NAME.
For diff, a bare A..B or A...B is pulled out before the table.
git rev-parse --verify fails on range syntax. Only a token that is not
an existing worktree/index/HEAD path is a range — ../shared/util.go
contains .. and is a path. At most one range; a second is 129. --range
is the explicit form and exclusive with the positional.
First match wins:
| # | Test | Result |
|---|---|---|
| 1 | After -- |
Pathspec, always |
| 2 | Starts with : |
Git pathspec magic, verbatim |
| 3 | (diff only) git rev-parse --verify |
Revision or rev:path |
| 4 | Path in worktree, index, or HEAD, or a wildcard matching a tracked path | Pathspec |
| 5 | Splits at some : into existing path + name, last colon first |
Symbol anchor |
| 6 | None | Error listing each try |
src/notes:draft.md exists → rule 4. auth.go:ValidateToken does not →
rule 5. Force with --sym or --file when both exist.
Rule 5 tries the last colon first, then leftwards — a path containing
a colon still splits as before; a name containing one
(s.css:a:hover) still resolves. Rule 3 splits at the first colon
(HEAD~1:f.go).
Exactly two rev:path positionals naming the same path compare that
file across revisions: rgit diff HEAD~1:auth.go HEAD:auth.go. Combining
with --file, --staged/--unstaged, a range, or bare revisions is 129.
A single unpaired rev:path is 129.
Paths are relative to the cwd, not the repo root. Leading-colon magic
(:/, :(top)) is root-relative. Output is always root-relative.
rgit commit -m "chore: bump deps" package.json bun.lock
rgit commit -m "fix(auth): reject expired" auth.go:ValidateToken auth.go:@imports
rgit commit -m "docs: note expiry" README.md auth.go:ValidateToken
rgit diff main...HEAD -- src/
rgit commit -m "chore: format" 'src/*.go'
rgit commit -m "chore: sweep" . ':(exclude)docs/*'
rgit diff ':/src'Default is everything committable: staged + unstaged vs HEAD, plus
untracked — git diff HEAD ∪ untracked, not git diff.
| Scope | Flag | Git equivalent |
|---|---|---|
| Everything committable (default) | — | git diff HEAD + untracked |
| Unstaged only | --unstaged |
git diff |
| Staged only | --staged / --cached |
git diff --staged |
| Revision range | positional or --range |
git diff A..B / A...B |
--sym / --file filter; --sym omits (unanchorable) in that file.
Filter matches the resolved canonical form.
No commits yet: default scope falls back to the empty tree; commit
writes the root commit.
Aligned layout by default. --porcelain is
CODES.md. [ts-only] no live language server reached in time; extents unverified prints once per commit invocation,
not once per row. diff never dials a language server.
A chmod +x with no content edit is MODE. Stage with a pathspec;
--sym cannot express it.
JSON, JSONC, JSON5, YAML, and TOML files render as one path row: commit
refuses FILE:key on those files, so the listing names the path instead.
--sym FILE:member on a member of a container new to HEAD warns:
commit would stage the whole container
(ANCHORS.md). The unfiltered listing does
not.
-p/--patch appends git's own patch after the report. Exclusive with
--porcelain.
$ rgit show auth.go:ValidateToken
func ValidateToken(tok string) error {
if tok == "" {
return ErrEmpty
}
return nil
}
$ rgit show --source v1.4.0 auth.go:ValidateToken | diff - <(rgit show auth.go:ValidateToken)Writes the resolved extent, no added newline. One anchor, no
--porcelain: raw bytes. Several: FILE:ANCHOR<TAB>NBYTES
then exactly those bytes. --porcelain forces framing for one too
(CODES.md). All anchors resolve before any write.
Default source: worktree, else HEAD. --source <rev> reads <rev>:FILE
(both spellings). Unknown revision: 128. Path absent at a known
revision: 3. Current name only unless --follow-rename, which prints the
oldest segment (same walk as blame/log). Combined with --source,
the walk starts at that revision. A plain path or zero anchors: 129.
Unresolvable anchor: 3/4/9, never a whole-file dump. Nothing is written.
One --source per invocation.
$ rgit blame auth.go:ValidateToken
^1a2b3c4 (Alice Example 2024-01-15 10:00:00 -0800 9) func ValidateToken(tok string) error {
5d6e7f8 (Bob Example 2024-03-02 14:22:11 -0800 10) if tok == "" {
...
$ rgit blame --source v1.4.0 auth.go:ValidateTokengit blame -L start,end -- FILE on the resolved extent. Worktree when
present, else HEAD. --source as show. --follow-rename uses the
rename-boundary walk and reads committed blobs. Combined with --source,
the walk starts at that revision. Unresolvable: 3/4/9, never a
whole-file blame.
-p is --porcelain (git blame's meaning, not patch). --porcelain
passes through to git blame --porcelain.
$ rgit log auth.go:ValidateToken
a1b2c3d fix(auth): reject expired tokens
9e8f7d6 feat(auth): add ValidateTokengit log -L start,end:FILE — one record per touching commit, newest
first. Patch-free by default; -p/--patch is git's own -L output.
--since/--until, -n/--max-count, and --follow-rename combine;
each rename segment gets the same filters.
Resolved against HEAD, not the worktree. --source <rev> resolves
at that revision and starts git log -L there. Combined with
--follow-rename, the walk starts at that revision and still
re-resolves at each later rename. git log -L can lose a rename that
also moves the symbol; --follow-rename re-resolves at each boundary.
Query the current name. LIMITATIONS.md.
--porcelain: HASH<TAB>SUBJECT. --json: one object. Each exclusive
with the other and with -p. CODES.md.
$ rgit log new.go:Foo --follow-rename
b6f3975 edit
2793187 rename + reorder
c8fdd8a initContinues past a rename that plain log FILE:SYMBOL stops at. One parse
per rename. LIMITATIONS.md.
$ rgit log bun.lock
a1b2c3d chore: bump lockfile
9e8f7d6 chore: add lockfile
$ rgit log --since=2024-01-01 -n 5 -- src/auth
a1b2c3d fix(auth): reject expired tokensPath positionals (with or without --since/--until) and no
FILE:SYMBOL select ordinary git history — same six-rule table, so
src/notes:draft.md stays a pathspec. Dates are forwarded unparsed.
Neither path, date, nor --follow: 129.
--follow is git's --follow on exactly one path (else 129). A
FILE:SYMBOL does not accept --follow; that form uses --follow-rename.
-n/--max-count limits either form.
B<TAB>main<TAB>origin/main<TAB>0<TAB>2
S<TAB>merge
W<TAB>stash
F<TAB>auth.go<TAB>ValidateToken<TAB>MOD<TAB>12<TAB>3
F<TAB>config.ini<TAB><TAB>UNTRACKED<TAB>4<TAB>0
T<TAB>auth.go<TAB>both
T<TAB>config.ini<TAB>untracked
C<TAB>a1b2c3d4e5f6<TAB>fix(auth): reject expired tokens
One-call orientation. It never dials a language server, so it emits no
W ts-only record and no extent-disagreement warnings (rgit commit still
cross-checks); it costs milliseconds on a dirty tree
instead of 1-2s. --json is that stream as one object
(CODES.md). --brief prints the B
record with dirty and untracked file counts appended as two extra fields,
and omits every other record. Any other argument is 129. Grammar:
CODES.md.
Capped at 16 KiB. B/H, then S, W, F (survive first), then
T, then C (last 20). Trailing X names withheld rows. --json
encodes what the cap kept; the JSON text is not measured against 16 KiB.
rgit --help / -h / help print the command list on stdout and exit 0.
rgit help <command> prints that command's --help text and exits 0.
rgit help --help and rgit help -h stay the top-level listing. An
unknown rgit help frobnicate is 129 and names the command.
diff and commit --help/-h are generated from the flag set. Other
commands print hand-written usage. A bare rgit is 129, not help.
rgit --version and rgit version print rgit <version> first and exit 0:
$ rgit --version
rgit v3.0.0
optional grammars: sql
built with go1.27.1, linux/amd64Stamped via -ldflags "-X main.version=vX.Y.Z". Else the toolchain
embed: go install …@vX.Y.Z reports the tag; go build in a checkout
reports git describe --tags --always --dirty. Neither: dev. Scripts
parse the first line only. Line 2 is gated grammars; line 3 is
toolchain/platform.
Lists every compiled grammar. SQL is -tags rgit_sql
(INSTALL.md). --version line 2 names the
same gated grammars.
$ rgit languages
css .css
go .go
html .html .htm
json .json
json5 .json5
jsonc .jsonc
markdown .md .markdown .mdx
python .py .pyi
rust .rs
scss .scss
shell .sh .bash
sql .sql (build-tag gated)
toml .toml
tsx .tsx .jsx .js .mjs .cjs
typescript .ts .mts .cts
yaml .yaml .yml
zsh .zsh .zshrc .zshenv .zprofileSample is a -tags rgit_sql build. --porcelain /
--json: CODES.md. Exclusive
(129). CROSS-CHECK is compile-time wiring (wired / ts-only for
TOML, SQL, JSON5). A .sql anchor without the tag is exit 9 and names
the tag.
--in-repo lists grammars with a matching file in this repo
(advisory). Extension-then-shebang; tracked files sample HEAD when the
worktree copy is gone; untracked (not ignored) count. Requires a git
repo.
Reports git on PATH and its version vs
INSTALL.md, gate and gh (optional; land
runs the first and reads branch rules and opens PRs with the second), the tree-sitter CLI, language
servers on PATH, and the languages listing. Exits 0 unless rgit
cannot function — a missing server, CLI, or below-floor git is
informational.
--porcelain / --json: CODES.md.
Exclusive (129). No grammar rows — languages --porcelain owns those.
--deep dials each on-PATH server (same handshake as commit)
and appends (reachable) or (degraded -- handshake timed out or unanswered). Not the default. A server not on PATH is never dialed.
$ rgit symbols auth.go
ValidateToken
$ rgit symbols --with-lines auth.go
12,27<TAB>ValidateTokenLists resolvable symbols from the worktree, or HEAD if the worktree
copy is gone. Path in neither: error. --for-commit omits structured-data
symbols commit refuses; a supported structured-data file still exits 0
with no output.
--with-lines is git's -L range
(CODES.md). Several files prefix
FILE<TAB> as grep does; --with-filename forces it for one.
--limit N caps the listing; --match REGEX keeps names that match.
--porcelain is NUL-terminated. --json:
CODES.md. Exclusive with --porcelain
(129). All files resolve before any write. Filter and limit apply after
that, to the combined listing.
No file argument: usage on stderr, 129. Unreadable: 128. Unsupported language: 9.
When core.ignorecase is true, extension lookup is case-insensitive for
symbols, find, commit, diff, show, blame, log, and languages; the path is
unchanged.
$ rgit find parseShell
internal/app/parse.go:40-88 function parseShell
func parseShell(args []string) { ... }Finds declared symbols matching QUERY in tracked files under each DIR
(default: the repository root of -C or cwd). Match order: exact name,
case-insensitive exact, prefix, substring, subsequence (fuzzy: prsShl
matches parseShell). A query with a dot also matches Receiver.Method /
Class.method.
--bodies N (default 3) prints each hit's own bytes — the same extent
show would — for the top N hits; remaining hits print the header only.
--limit N (default 20) caps the listing. --names prints header lines
only. --json: CODES.md.
Header line: path:start-end kind name. Exit 0 with hits, 1 with none
(stderr names the dirs searched and the file count). No query: 129.
Does not start language servers.
$ rgit land --repos ~/src/foo ~/src/bar
/src/foo: pushed 3f2a9c1d0e5b7a8c9d0e1f2a3b4c5d6e7f8a9b0c
/src/bar: PR https://github.com/acme/bar/pull/12 (queued)
$ rgit land --branch feat --push
removed worktree /tmp/feat
deleted branch feat
/src/foo feat abcdef1 ~/.cache/land-branch/foo-feat-1234.log directRuns each repo's full gate (gate in the repo directory) on HEAD, then pushes
its ahead commits on the default branch: a direct push when
branch rules allow it, otherwise a timestamped land/ branch, PR, and
merge or merge-queue request. If the gh rules lookup fails, the last successful lookup (cached under ~/.cache/land-rules) is used, with a warning. Dirty or off-default repos are skipped (exit 14); untracked, non-ignored files make the repo red, since the gate would run with them; a repo with nothing to push is skipped with exit 0.
Before anything else, each repo on a clean default branch that is behind its
remote and not ahead is fast-forwarded and make installed, printing
DIR: caught up to SHA, plus (merged PR #N) when a new commit subject
carries #N (a rebase-merged PR has none); a diverged or dirty branch is
left alone. A default branch that is both ahead and behind is rebased onto its
upstream before the gate; a conflicting rebase is aborted and the repo skipped
(exit 14).
--wait polls each open PR until it merges (or the cap); otherwise bosun
watches the PR (nomad-hud records the PR line). --install runs make install
from each directly pushed, clean HEAD after every repo in the run has
been pushed. A merged or queued PR is not installed. No Makefile, or a
Makefile with no install target: one skip line naming the reason.
Success: DIR: installed <describe>. Install failure: the failing tail,
exit 5.
A push rejected because origin moved is never rebased and retried: land
exits 1 with DIR: error: origin moved; nothing pushed, re-run on stderr (origin moved during the gate with --branch), since the commit that would go out is not
the one that was verified. Success prints the pushed SHA.
The gate runs before any push, PR or queue step. A red gate pushes nothing
for that repo: its line is DIR: red (gate failed: NAMES; log PATH) and land
exits 1. If HEAD moved while the gate ran, nothing is pushed
(HEAD moved during the gate; nothing pushed, re-run); if the gate edited tracked
files, nothing is pushed and the line names them (gate modified tracked files (NAMES)). --no-gate skips the
gate, for callers that already gated the commit.
--sha SHA lands that one ahead commit (an ancestor of HEAD, not yet
upstream) instead of HEAD, by the same direct, PR or queue route. It
neither rebases nor resets: the checkout may be dirty and newer local
commits stay local. Not with --branch. A gate can run only on the checkout,
so --sha is gated when SHA is HEAD and the tracked tree is clean, and is
refused otherwise (red, exit 1) unless --no-gate is given.
--dry-run prints each repo in run order with its route (push, PR or queue), gate status
(would run, would reuse pass, or skipped under --no-gate) and ahead commits, then exits 0
without catch-up, gate or push; --json prints the same as one object. It combines only with
--repos, --no-gate and --json. A repo whose package.json or go.mod change pins another
run repo's unpushed commit by SHA runs after that repo, and is skipped if that repo is red.
--branch BR lands local branch BR onto the default branch in one repo
(--repos DIR or the current directory). The repo must be the main
checkout. By default it does the rebase, gate, and local fast-forward,
then stops: no push, land/ branch, or PR;
--install still runs make install. Last stdout line:
<repo> <branch> <sha> <gate log> local. It rebases onto the local
default branch whether or not the checkout is dirty, so unpushed
default-branch commits stay in the base, and it fast-forwards a dirty
checkout when the dirty files are not ones the branch changes.
--push instead takes the push route (direct, PR, or queue); the last
line ends <direct|PR|queue>. Without --branch, --push is usage
(--push needs --branch).
| Condition | What happens |
|---|---|
| BR pushed and its worktree clean | Linked worktree removed (git worktree remove); local BR deleted (git branch -d); stdout removed worktree PATH, deleted branch BR |
| Dirty worktree, red gate, rebase conflict, or queued-not-merged PR | Worktree and branch left in place |
| Dirty main | Default (local): fast-forwarded when the dirty files are not ones BR changes; otherwise exit 13 naming the overlap. --push: left alone; BR rebased onto origin/<default> in BR's worktree and pushed from there |
| Clean main | Must be on the default branch; BR rebased onto it, fast-forwarded, and (with --push) pushed |
Before gate -C <worktree> |
Ignored untracked .env, .env.local, .env.*.local in the main checkout are symlinked into the worktree at the same relative path when that path is absent; links removed after the gate, success or fail. .env.example and tracked files are left alone |
| Failure | Stderr | Exit |
|---|---|---|
| BR's worktree has uncommitted changes | the worktree and the files | 14 |
| The gate edited tracked files, or HEAD moved during it | the files | 14 |
| Rebase conflict | conflict: hand to solver, the worktree and the conflicting files |
2 |
gate -C <worktree> red |
log path and last 40 lines | 3 |
| Merge queue that does not enqueue | names the branch | 4 |
--install failure |
the failing tail | 5 |
| Local ff-merge refused: the dirty checkout edits files BR changes | the overlapping paths | 13 |
rgit completion bash|zsh|fish|pwsh prints a script to stdout.
Completes subcommands, flags, paths, and names after FILE: via rgit symbols FILE (or --for-commit for commit). Failure (no repo, not on
PATH) offers nothing. Install: INSTALL.md.
blame: -p/--porcelain, --follow-rename, --source, --help.
languages: --porcelain, --json, --in-repo, --help.
log: --porcelain, --json, -p/--patch, --follow,
--follow-rename, --source, -n/--max-count, --since/--until,
--help.
show: --source, --follow-rename, --porcelain, --help.
symbols: --for-commit, --with-lines, --with-filename,
--limit, --match, --porcelain, --json, --help.
find: --bodies, --limit, --names, --json, --help.
doctor: --porcelain, --json, --deep, --help.
context: --json, --brief, --help/-h.
completion: --help/-h plus the shell argument.
| Flag | Behavior |
|---|---|
--sym FILE:NAME |
Explicit anchor. Repeatable. |
--file PATH |
Explicit pathspec. Repeatable. |
--pathspec-from-file FILE |
(commit, diff) One target per line, or stdin when -. Exclusive with -F - when both would take stdin (129). |
--pathspec-file-nul |
NUL-delimited --pathspec-from-file. |
-m MSG, --message MSG |
Repeatable; values join as blank-line paragraphs. A value may span lines, as in git. |
-F FILE, --message-file FILE |
Message from file or stdin. Exclusive with -m. |
-s, --signoff |
Signed-off-by:. Forwarded. |
--trailer TOKEN:VALUE |
Repeatable, forwarded. |
--amend |
Amend previous. No -m/-F: reuse HEAD (--no-edit). No targets: amend the index as it stands. |
--allow-empty |
Permit no changes; suppresses exit 11. No targets: commit the index; still needs a message unless another auto-message flag is set. |
-i, --include |
Stage named targets into the index, then commit it (git's --include). Needs a target. Exclusive with --only and --stage-only. The way to take already-staged work along when naming targets. |
-o, --only |
Commit only the named targets; other staged paths stay. Default when any target is given. Needs a target unless --amend. Private index + rgit-commit.lock. Another writer moving HEAD mid-commit: 128, nothing committed. |
--reuse-message=<commit> |
Git's --reuse-message. Long form only. Exclusive with -m. |
--reedit-message |
Refused (129). |
--push |
Removed (129): run rgit land after committing. |
--stage-only |
Stage into the real index and stop: no message, no hooks. Needs a target. Exclusive with --include, --only, --amend, --allow-empty, -m/-F, --fixup, --squash, --reuse-message. No unstage of one symbol — git restore --staged FILE takes the whole file. |
--dry-run |
Preview; needs no message. No objects, no staging, no hooks. Same +N/-M as diff. |
--no-verify |
Skip hooks. |
--fixup <commit> |
Autosquash (amend:/reword: forwarded). Generates its subject; -m/-F append. |
--squash <commit> |
Same message rule as --fixup. |
--author <author> |
Forwarded. |
--date <date> |
Forwarded. |
--reset-author |
Forwarded; git accepts it only with --amend or --fixup=amend:. |
--porcelain |
(commit) H<TAB>SHA then target records. --dry-run: targets only. |
--json |
(commit) Same facts as --porcelain as one object. Omits sha when porcelain would omit H. A real commit adds left (dirty paths, upstream, ahead). Exclusive with --porcelain and -q. |
-q, --quiet |
(commit) Empty stdout; stderr still carries warnings. |
--verbose |
(commit) Print hook output even on a successful commit. On success, hooks are otherwise silent. |
-S, -S<key-id>, --gpg-sign, --gpg-sign=<key-id> |
GPG-sign. See -S parsing below. |
--no-gpg-sign |
Override commit.gpgsign=true. |
--unstaged |
(diff) Worktree vs index. |
--staged, --cached |
(diff) Index vs HEAD. |
--range REVS |
(diff) Explicit range. |
--porcelain |
(diff) TSV records. |
--json |
(diff) Porcelain rows as one object. Exclusive with --porcelain, -p, and --quiet. |
--exit-code |
(diff) 1 if committable, 0 if clean. |
--quiet |
(diff) Implies --exit-code, suppresses output. |
-p, --patch |
(diff) Git's patch after the report. Exclusive with --porcelain and --json. |
--stat |
(diff) Accepted as a no-op: every row already carries +N/-M. |
--porcelain |
(show) Length-framed extents. |
--with-filename |
(symbols) FILE<TAB> prefix. |
--limit N |
(symbols) At most N records, after --match. |
--match REGEX |
(symbols) Keep symbol names matching REGEX. |
--porcelain |
(symbols) NUL records. |
--json |
Global. One object on stdout for diff, commit, log, context, languages, doctor, symbols, find, land. Before or after the command. Other commands: 129. |
--json |
(symbols) One object. Exclusive with --porcelain. |
--bodies N |
(find) Print bodies for the top N hits (default 3). |
--names |
(find) Header lines only. |
--limit N |
(find) At most N hits, after ranking (default 20). |
--json |
(find) One object. |
--follow-rename |
(show, blame, log) Re-resolve at each rename. Combined with --source, starts at that revision. Plain path: 129. |
--source REV |
(show, blame, log) Read/blame/walk REV:FILE. Unknown rev: 128. Absent path: 3. |
--since DATE, --until DATE |
(log) Date bounds. Forwarded unparsed. |
--follow |
(log, path form) Exactly one path (else 129). Not on FILE:SYMBOL. |
-n N, --max-count=N |
(log) Cap; under --follow-rename, per segment (total may exceed N). |
--json |
(log) hash/subject object. Exclusive with --porcelain and -p. |
commit needs -m or -F unless --amend, --fixup, --squash,
--reuse-message, --dry-run, or --stage-only. It needs a target unless those or --allow-empty.
Zero targets means skip staging, not git add -A. Named targets imply
--only. During merge, cherry-pick, or revert, omitting -m/-F reuses
Git's message; naming a target then needs -i (partial commit is refused).
-S is rewritten to the long form before pflag: an optional-value
shorthand would misread -SDEADBEEF as a flag chain. Everything after
-S in the same token is the key id (-Ss is key s). -sS is
refused (129): write -s -S.
Success relays git commit's summary, then each target's +N/-M. Hook output is held and printed only when the commit fails; --verbose prints it always. Last line: left: N dirty (a, b, c, …) · M ahead of UPSTREAM, or left: clean; the ahead part is omitted with no upstream; not printed with -q or --porcelain.
--porcelain: CODES.md.
$ rgit commit -m "fix(auth): reject expired tokens" \
-m "Tokens past exp were accepted because the clock check ran
before decode. Closes #42." \
auth.go:ValidateTokenInvalid combinations: --include + --only; --stage-only with any
of its exclusions (including --include);
--staged/--unstaged + a revision; --staged + --unstaged; --range
- a positional range;
-m+-F;--porcelain+--quiet(diff);--porcelain+-p(diff,log);--json+-p(diff,log);--porcelain+--json(diff,commit,languages,doctor,symbols,log);--json+--quiet(diff,commit) → 129. One path as both path and symbol → 5 (greet.go greet.go:A).
FILE:SYMBOL on JSON/JSONC/JSON5/YAML/TOML → 12. Name the path.
CODES.md.
A missing conventional-commit shape warns; the commit proceeds.
rgit commit with targets is git commit --only at symbol granularity:
- Named targets commit only those. Already-staged work stays in the
index.
-i/--includetakes it along.--onlyis accepted. - A hook rejecting the commit rolls staging back to its pre-commit state
(under
--onlynothing was staged). Snapshot, temp index, restore on failure. Only the entries rgit staged are reverted; staging another session did meanwhile stays. Index entries only — no worktree file is written. Staging holds git'sindex.lock. --onlyduring a merge, cherry-pick, or revert is refused ("cannot do a partial commit during a merge"), as in git.- Hooks are not policed.
--no-verifydisables them. - Merge / cherry-pick / revert without
-m/-Fuses--no-edit. Rebase remainsgit rebase --continue. commit.cleanupandcommit.gpgsignare honoured.commit.templateis not —rgitnever opens an editor.
When stdin is not a terminal, GIT_TERMINAL_PROMPT=0.
An ordinal (auth.go:init#2) is positional. Resolving one prints:
[warning] anchor 'dup.go:init#2' is positional; inserting a symbol above it repoints it -- qualify it where the language allows
commit, diff --sym, show, blame, and log all print it. A bare
or qualified anchor that matches the same symbol does not.
Warning, not failure, per unchanged target:
[warning] target 'auth.go:oldHelper' has no uncommitted changes; skipping
Exit 11 only when every named target is unchanged. --allow-empty
suppresses it.