arc trace file
FILE_PATH
: Path to the file, relative to the repository root.LINE_NUMBER
: Line number to trace (1-based).--max-results
, -m INTEGER
: Maximum number of results to return (default: 3).--max-hops
, -h INTEGER
: Maximum number of hops in the graph traversal (default: 2).--format
, -f [text|json]
: Output format (default: text).--debug
: Enable debug logging.--format text
), the command outputs a table with the following columns:
The trace command outputs a table with the following columns:
--format json
), the command outputs a JSON array of objects, where each object represents a node in the history trail. This format is particularly useful for programmatic consumption, such as by the VS Code extension.
Example JSON output:
type
: The type of the node (commit, pr, issue, adr, file)id
: The unique identifier of the nodetitle
: The title or description of the nodetimestamp
: When the node was created or last modified (ISO format)commit
: author
, sha
pr
: number
, state
, url
issue
: number
, state
, url
adr
: status
, decision_makers
, path
git blame
to find the commit that last modified the specified line.arc build
.arc build
.arc build
to create it.--debug
flag to see detailed logs: arc trace file path/to/file.py 42 --debug