aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-07-02 02:00:10 +0800
committerGitHub <noreply@github.com>2023-07-01 14:00:10 -0400
commitcea9401634cedb8daa3f51614684e8de9a31213b (patch)
tree71cd68a70737aea0964f43d256cb558d9cba11db /models
parent469d89b95a1ce18dd34808a95c7230375e828e24 (diff)
downloadgitea-cea9401634cedb8daa3f51614684e8de9a31213b.tar.gz
gitea-cea9401634cedb8daa3f51614684e8de9a31213b.zip
Following-up improvments for various PRs (#25620)
For: * #22743 * #25408 * #25412 * #25588
Diffstat (limited to 'models')
-rw-r--r--models/git/branch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/git/branch.go b/models/git/branch.go
index 255b230b51..88ed858b19 100644
--- a/models/git/branch.go
+++ b/models/git/branch.go
@@ -101,9 +101,9 @@ func (err ErrBranchesEqual) Unwrap() error {
type Branch struct {
ID int64
RepoID int64 `xorm:"UNIQUE(s)"`
- Name string `xorm:"UNIQUE(s) NOT NULL"`
+ Name string `xorm:"UNIQUE(s) NOT NULL"` // git's ref-name is case-sensitive internally, however, in some databases (mssql, mysql, by default), it's case-insensitive at the moment
CommitID string
- CommitMessage string `xorm:"TEXT"`
+ CommitMessage string `xorm:"TEXT"` // it only stores the message summary (the first line)
PusherID int64
Pusher *user_model.User `xorm:"-"`
IsDeleted bool `xorm:"index"`