forked from toolshed/abra
		
	chore: refactor / docstrings
This commit is contained in:
		| @ -48,7 +48,7 @@ func Init(repoPath string, commit bool, gitName, gitEmail string) error { | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // Set the default branch for the passed repo as "main" | ||||
| // SwitchToMain sets the default branch to "main". | ||||
| func SwitchToMain(repo *git.Repository) error { | ||||
| 	ref := plumbing.NewSymbolicReference(plumbing.HEAD, plumbing.ReferenceName("refs/heads/main")) | ||||
| 	if err := repo.Storer.SetReference(ref); err != nil { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user