CLI Reference · Current
Local history commands
Read commits and local ref history using the options implemented by the current alpha.
| Command | Current behavior | Exact syntax |
|---|---|---|
| log | Walk local commit history; default limit is 10 | dits log [-n|--limit <N>] [--oneline] [--graph] [--all] |
| show | Show one commit; defaults to HEAD | dits show [COMMIT] [--stat] [--name-only] [--name-status] [--no-patch] |
| diff | Inspect current working-tree or staged state | dits diff [--staged] [-c|--commit <COMMIT>] [FILE] |
| blame | Attribute the current file through local history | dits blame <FILE> [-L <START,END>] |
| reflog | Read a local reflog when present or reconstruct a limited commit-history view | dits reflog [REF_NAME] [-n|--limit <N>] |
| bisect | Manage a local start/good/bad/reset/status search | dits bisect [ACTION] [COMMIT] |
Common local inspection
dits log
dits log --oneline --graph --all -n 25
dits show HEAD
dits show HEAD --stat
dits show a1b2c3d --name-status
dits blame src/main.rs
dits blame src/main.rs -L 20,40
dits reflog
dits reflog refs/heads/main --limit 50
dits bisect start
dits bisect bad HEAD
dits bisect good a1b2c3d
dits bisect status
dits bisect resetImportant boundaries
logsupports only limit, oneline, graph, and all-branches switches. It has no date, author, message, path, follow, or revision-range filters.showresolves one commit or local ref. It does not implement object-path syntax such asCOMMIT:pathor custom formats.blame -Laccepts the command's numeric line-range form; it is not a general Git blame option parser.- Reflog and bisect are local navigation aids, not synchronized server state. The current alpha does not record every ref-changing action; if a reflog file is absent, the command labels and shows a limited view reconstructed from commit history. Treat neither view as a complete undo journal or durable recovery record.
Diff is intentionally narrow
dits diff does not compare two commits. Its current --commit path resolves the name but still renders the working tree against HEAD. See the diff page.For history-changing operations, see branch and merge commands. Always inspect dits <command> --help before scripting.