mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-10 23:28:58 +00:00
Decrease memory footprint by realigning struct members.
This commit is contained in:
+6
-6
@@ -51,10 +51,10 @@ type Wording struct {
|
||||
}
|
||||
|
||||
type Force struct {
|
||||
Commit string
|
||||
Patch int
|
||||
Minor int
|
||||
Major int
|
||||
Commit string
|
||||
Existing bool
|
||||
Strict bool
|
||||
}
|
||||
@@ -68,24 +68,24 @@ type SemVer struct {
|
||||
}
|
||||
|
||||
type Setup struct {
|
||||
RepositoryHandler *git.Repository
|
||||
RepositoryName string
|
||||
RepositoryLocalPath string
|
||||
RepositoryHandler *git.Repository
|
||||
LocalConfigFile string
|
||||
Wording Wording
|
||||
Force Force
|
||||
Commits []CommitDetails
|
||||
Tags []TagDetails
|
||||
Semver SemVer
|
||||
Wording Wording
|
||||
Force Force
|
||||
Generate bool
|
||||
LocalConfigFile string
|
||||
UseLocal bool
|
||||
}
|
||||
|
||||
type CommitDetails struct {
|
||||
Timestamp time.Time
|
||||
Hash string
|
||||
Author string
|
||||
Message string
|
||||
Timestamp time.Time
|
||||
}
|
||||
|
||||
type TagDetails struct {
|
||||
|
||||
Reference in New Issue
Block a user