← 返回命令列表

Linux command

dolt-blame 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Blame every row

dolt blame [table_name]

Show blame by primary-key value

dolt blame [table_name] | grep "[key_value]"

Query blame via SQL

dolt sql -q "SELECT * FROM dolt_blame_[table_name]"

Show only rows modified by an author

dolt sql -q "SELECT * FROM dolt_blame_[table_name] WHERE committer = '[alice]'"

说明

dolt blame prints a row-per-primary-key table showing the timestamp, author, commit message, and commit hash of the last commit that modified that row. It is the row-level equivalent of `git blame`, adapted to a database. The CLI form shows a fixed set of columns. For more flexible queries (joins with other system tables, filtering by commit range, custom projections) use the equivalent SQL system view `dolt_blame_$tablename` — its columns include every primary key of the table plus `commit_hash`, `committer`, `email`, `date`, and `message`.

FAQ

What is the dolt-blame command used for?

dolt blame prints a row-per-primary-key table showing the timestamp, author, commit message, and commit hash of the last commit that modified that row. It is the row-level equivalent of `git blame`, adapted to a database. The CLI form shows a fixed set of columns. For more flexible queries (joins with other system tables, filtering by commit range, custom projections) use the equivalent SQL system view `dolt_blame_$tablename` — its columns include every primary key of the table plus `commit_hash`, `committer`, `email`, `date`, and `message`.

How do I run a basic dolt-blame example?

Run `dolt blame [table_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more dolt-blame examples?

This page includes 4 examples for dolt-blame, plus related commands for nearby Linux tasks.