1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Add simple comments to uncommented functions.

This commit is contained in:
BlakeMScurr
2018-11-30 11:04:08 +13:00
parent 5c70d2724b
commit 643cdd3461
10 changed files with 75 additions and 0 deletions

View File

@ -262,6 +262,7 @@ func (c *GitCommand) NewBranch(name string) error {
return c.OSCommand.RunCommand(fmt.Sprintf("git checkout -b %s", name))
}
// CurrentBranchName is a function
func (c *GitCommand) CurrentBranchName() (string, error) {
branchName, err := c.OSCommand.RunCommandWithOutput("git symbolic-ref --short HEAD")
if err != nil {