mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-26 10:41:55 +00:00
before: gitrepo vs git packages after: git package fully handle all git operations by the way, use `WithRepo(repo)` instead of `WithDir(repo.Path)` to hide path details. benefits: 1. remove all unnecessary wrappers, developers no need to struggle with "which package should be used" 2. simplify code, RepositoryFacade can (will) be used everywhere, all "path" details are (will be) hidden
22 lines
375 B
Go
22 lines
375 B
Go
// Copyright 2015 The Gogs Authors. All rights reserved.
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build !gogit
|
|
|
|
package git
|
|
|
|
const isGogit = false
|
|
|
|
type Repository struct {
|
|
RepositoryBase
|
|
}
|
|
|
|
func openRepositoryInternal(_ *Repository) error {
|
|
return nil
|
|
}
|
|
|
|
func (repo *Repository) closeInternal() error {
|
|
return nil
|
|
}
|