MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / RenameCurrentBranch

Method RenameCurrentBranch

pkg/integration/components/shell.go:145–147  ·  view source on GitHub ↗
(newName string)

Source from the content-addressed store, hash-verified

143}
144
145func (self *Shell) RenameCurrentBranch(newName string) *Shell {
146 return self.RunCommand([]string{"git", "branch", "-m", newName})
147}
148
149func (self *Shell) Checkout(name string) *Shell {
150 return self.RunCommand([]string{"git", "checkout", name})

Callers 2

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected