diff options
Diffstat (limited to 'modules/structs/repo_file.go')
-rw-r--r-- | modules/structs/repo_file.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go index cb836e2e23..c34923e389 100644 --- a/modules/structs/repo_file.go +++ b/modules/structs/repo_file.go @@ -14,8 +14,9 @@ type FileOptions struct { // new_branch (optional) will make a new branch from `branch` before creating the file NewBranchName string `json:"new_branch" binding:"GitRefName;MaxSize(100)"` // `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) - Author Identity `json:"author"` - Committer Identity `json:"committer"` + Author Identity `json:"author"` + Committer Identity `json:"committer"` + Dates CommitDateOptions `json:"dates"` } // CreateFileOptions options for creating files |