803672a610
Enable LFS toggle — turns LFS on/off for the repo; all other controls dim when disabled File locking toggle — enables the LFS locking protocol for binary assets Maximum file size — optional per-file size cap in MB (blank = unlimited) Info callout linking to the git-lfs client install page and noting the .gitattributes requirement
10 lines
346 B
Go
10 lines
346 B
Go
package models
|
|
|
|
type RepoLFSSettings struct {
|
|
ID int64 `xorm:"'id' pk autoincr"`
|
|
RepoID int64 `xorm:"'repo_id' notnull unique"`
|
|
Enabled bool `xorm:"'enabled' default false"`
|
|
LockingEnabled bool `xorm:"'locking_enabled' default true"`
|
|
MaxFileSizeMB int64 `xorm:"'max_file_size_mb' default 0"` // 0 = unlimited
|
|
}
|