MCPcopy
hub / github.com/jesseduffield/lazygit / NewBranchFrom

Method NewBranchFrom

pkg/integration/components/shell.go:141–143  ·  view source on GitHub ↗
(name string, from string)

Source from the content-addressed store, hash-verified

139}
140
141func (self *Shell) NewBranchFrom(name string, from string) *Shell {
142 return self.RunCommand([]string{"git", "checkout", "-b", name, from})
143}
144
145func (self *Shell) RenameCurrentBranch(newName string) *Shell {
146 return self.RunCommand([]string{"git", "branch", "-m", newName})

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected