repository: rename Lock function to LockRepo

Rename `Lock()` to `LockRepo()` to make room for the `Lock` struct.
This commit is contained in:
Michael Eischer
2026-06-13 21:24:37 +02:00
parent 8e11f5747d
commit 3ee465d363
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func internalOpenWithLocked(ctx context.Context, gopts global.Options, dryRun bo
if !dryRun {
var lock repository.Unlocker
lock, ctx, err = repository.Lock(ctx, repo, exclusive, gopts.RetryLock, func(msg string) {
lock, ctx, err = repository.LockRepo(ctx, repo, exclusive, gopts.RetryLock, func(msg string) {
if !gopts.JSON {
printer.P("%s", msg)
}