Skip to contents

Tool: Git Log

Usage

btw_tool_git_log(ref = "HEAD", max = 10, after = NULL, `_intent` = "")

Arguments

ref

Revision string with a branch/tag/commit value. Defaults to "HEAD".

max

Maximum number of commits to retrieve. Defaults to 10.

after

Optional date or timestamp: only include commits after this date.

_intent

An optional string describing the intent of the tool use. When the tool is used by an LLM, the model will use this argument to explain why it called the tool.

Value

Returns a character table of commit history.

Examples

if (FALSE) { # \dontrun{
btw_tool_git_log()
btw_tool_git_log(max = 20, ref = "main")
} # }