Skip to contents

Tool: Git Branch Create

Usage

btw_tool_git_branch_create(
  branch,
  ref = "HEAD",
  checkout = TRUE,
  `_intent` = ""
)

Arguments

branch

Name of the new branch to create.

ref

Optional reference point for the new branch. Defaults to "HEAD".

checkout

Whether to check out the new branch after creation. Defaults to TRUE.

_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 confirmation message.

Examples

if (FALSE) { # \dontrun{
btw_tool_git_branch_create(branch = "feature/new-analysis")
} # }