Versions in this module Expand all Collapse all v1 v1.8.1 May 8, 2019 Changes in this version + func DeleteRepoFile(repo *models.Repository, doer *models.User, opts *DeleteRepoFileOptions) error + func GetDiffPreview(repo *models.Repository, branch, treePath, content string) (*models.Diff, error) + func UpdateRepoFile(repo *models.Repository, doer *models.User, opts *UpdateRepoFileOptions) error + func UploadRepoFiles(repo *models.Repository, doer *models.User, opts *UploadRepoFileOptions) error + type DeleteRepoFileOptions struct + LastCommitID string + Message string + NewBranch string + OldBranch string + TreePath string + type TemporaryUploadRepository struct + func NewTemporaryUploadRepository(repo *models.Repository) (*TemporaryUploadRepository, error) + func (t *TemporaryUploadRepository) AddObjectToIndex(mode, objectHash, objectPath string) error + func (t *TemporaryUploadRepository) CheckAttribute(attribute string, args ...string) (map[string]map[string]string, error) + func (t *TemporaryUploadRepository) Clone(branch string) error + func (t *TemporaryUploadRepository) Close() + func (t *TemporaryUploadRepository) CommitTree(doer *models.User, treeHash string, message string) (string, error) + func (t *TemporaryUploadRepository) DiffIndex() (diff *models.Diff, err error) + func (t *TemporaryUploadRepository) HashObject(content io.Reader) (string, error) + func (t *TemporaryUploadRepository) LsFiles(filenames ...string) ([]string, error) + func (t *TemporaryUploadRepository) Push(doer *models.User, commitHash string, branch string) error + func (t *TemporaryUploadRepository) RemoveFilesFromIndex(filenames ...string) error + func (t *TemporaryUploadRepository) SetDefaultIndex() error + func (t *TemporaryUploadRepository) WriteTree() (string, error) + type UpdateRepoFileOptions struct + Content string + IsNewFile bool + LastCommitID string + Message string + NewBranch string + NewTreeName string + OldBranch string + OldTreeName string + type UploadRepoFileOptions struct + Files []string + LastCommitID string + Message string + NewBranch string + OldBranch string + TreePath string v1.8.0-rc2 Mar 27, 2019