aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-05-23 09:23:27 +0100
committerGitHub <noreply@github.com>2023-05-23 09:23:27 +0100
commit1feac1b95958fbce7eabffa671f3fc6aab2a8258 (patch)
tree69cfb8382a3fac7053e396e151c27027f82600ec /plumbing
parent90bfbf2c5cb34da7cfa59e09275d34b159aa57f3 (diff)
parent1aa8e8940336aa80eccdd8dd9b46b0e6547e7127 (diff)
downloadgo-git-1feac1b95958fbce7eabffa671f3fc6aab2a8258.tar.gz
Merge pull request #764 from techknowlogick/init-options
git: Allow Initial Branch to be configurable
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/reference.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plumbing/reference.go b/plumbing/reference.go
index eef11e8..aeb4227 100644
--- a/plumbing/reference.go
+++ b/plumbing/reference.go
@@ -126,6 +126,7 @@ func (r ReferenceName) Short() string {
const (
HEAD ReferenceName = "HEAD"
Master ReferenceName = "refs/heads/master"
+ Main ReferenceName = "refs/heads/main"
)
// Reference is a representation of git reference