0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-18 05:03:00 +02:00

update comment

This commit is contained in:
Lunny Xiao 2026-06-14 11:31:47 -07:00
parent 07b41769dc
commit 65c72437cb
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -12,9 +12,9 @@ import (
// FetchRemoteCommit fetches a specific commit and its related objects from a remote
// repository into the managed repository.
//
// If no reference (branch, tag, or other ref) points to the fetched commit, it will
// be treated as unreachable and cleaned up by `git gc` after the default prune
// expiration period (2 weeks). Ref: https://www.kernel.org/pub/software/scm/git/docs/git-gc.html
// If no reference (branch, tag, or other ref) points to the fetched commit, it becomes
// unreachable. It can be cleaned up by a later `git gc` / auto-gc opportunity, such as
// a future push, subject to the repository's prune policy. Ref: https://www.kernel.org/pub/software/scm/git/docs/git-gc.html
//
// This behavior is sufficient for temporary operations, such as determining the
// merge base between commits.