/dports/www/gitea/gitea-1.16.5/routers/private/ |
H A D | hook_pre_receive.go | 115 newCommitID := opts.NewCommitIDs[i] 120 preReceiveBranch(ourCtx, oldCommitID, newCommitID, refFullName) 122 preReceiveTag(ourCtx, oldCommitID, newCommitID, refFullName) 124 preReceivePullRequest(ourCtx, oldCommitID, newCommitID, refFullName) 136 func preReceiveBranch(ctx *preReceiveContext, oldCommitID, newCommitID, refFullName string) { argument 145 if branchName == repo.DefaultBranch && newCommitID == git.EmptySHA { 172 if newCommitID == git.EmptySHA { 201 err := verifyCommits(oldCommitID, newCommitID, gitRepo, ctx.env) 206 Err: fmt.Sprintf("Unable to check commits from %s to %s: %v", oldCommitID, newCommitID, err), 227 _, err := pull_service.CheckFileProtection(oldCommitID, newCommitID, globs, 1, ctx.env, gitRepo) [all …]
|
H A D | hook_verification.go | 35 func verifyCommits(oldCommitID, newCommitID string, repo *git.Repository, env []string) error { 47 err = git.NewCommand("rev-list", oldCommitID+"..."+newCommitID). 61 …log.Error("Unable to check commits from %s to %s in %s: %v", oldCommitID, newCommitID, repo.Path, …
|
H A D | hook_post_receive.go | 126 newCommitID := opts.NewCommitIDs[i] 168 if newCommitID != git.EmptySHA && strings.HasPrefix(refFullName, git.BranchPrefix) {
|
/dports/www/gitea/gitea-1.16.5/services/mirror/ |
H A D | mirror_pull.go | 72 newCommitID string member 102 newCommitID: gitShortEmptySha, 121 newCommitID: shas[1], 137 newCommitID: shas[1], 435 if result.newCommitID == gitShortEmptySha { 446 newCommitID, err := git.GetFullCommitID(gitRepo.Path, result.newCommitID) 448 …"SyncMirrors [repo: %-v]: unable to get GetFullCommitID [%s]: %v", m.Repo, result.newCommitID, err) 451 commits, err := gitRepo.CommitsBetweenIDs(newCommitID, oldCommitID) 453 …CommitsBetweenIDs [new_commit_id: %s, old_commit_id: %s]: %v", m.Repo, newCommitID, oldCommitID, e… 462 theCommits.CompareURL = m.Repo.ComposeCompareURL(oldCommitID, newCommitID) [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/workhorse/vendor/gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/service/repository/ |
H A D | fetch_test.go | 29 newCommitID := gittest.WriteCommit(t, cfg, sourcePath, gittest.WithBranch(sourceBranch)) 45 require.Equal(t, newCommitID.String(), fetchedCommit.GetId()) 61 newCommitID := gittest.WriteCommit(t, cfg, repoPath, gittest.WithBranch(sourceBranch)) 77 require.Equal(t, newCommitID.String(), fetchedCommit.GetId())
|
/dports/devel/gitlab-shell/gitlab-shell-65b8ec55bebd0aea64ac52b9878bafcc2ad992d3/vendor/gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/service/repository/ |
H A D | fetch_test.go | 29 newCommitID := gittest.WriteCommit(t, cfg, sourcePath, gittest.WithBranch(sourceBranch)) 45 require.Equal(t, newCommitID.String(), fetchedCommit.GetId()) 60 newCommitID := gittest.WriteCommit(t, cfg, repoPath, gittest.WithBranch(sourceBranch)) 76 require.Equal(t, newCommitID.String(), fetchedCommit.GetId())
|
/dports/textproc/gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-ef1440548effec15831eda2d246dacc43233cefb/vendor/gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/service/repository/ |
H A D | fetch_test.go | 29 newCommitID := gittest.WriteCommit(t, cfg, sourcePath, gittest.WithBranch(sourceBranch)) 45 require.Equal(t, newCommitID.String(), fetchedCommit.GetId()) 61 newCommitID := gittest.WriteCommit(t, cfg, repoPath, gittest.WithBranch(sourceBranch)) 77 require.Equal(t, newCommitID.String(), fetchedCommit.GetId())
|
/dports/www/gitea/gitea-1.16.5/services/pull/ |
H A D | pull.go | 236 …doer *user_model.User, repoID int64, branch string, isSync bool, oldCommitID, newCommitID string) { 259 if newCommitID != "" && newCommitID != git.EmptySHA { 260 changed, err := checkIfPRContentChanged(pr, oldCommitID, newCommitID) 270 if err := models.MarkReviewsAsNotStale(pr.IssueID, newCommitID); err != nil { 302 comment, err := models.CreatePushPullComment(doer, pr, oldCommitID, newCommitID) 335 func checkIfPRContentChanged(pr *models.PullRequest, oldCommitID, newCommitID string) (hasChanged b… 376 if err := headGitRepo.GetDiffFromMergeBase(base, newCommitID, diffAfter); err != nil {
|
H A D | patch.go | 448 func CheckFileProtection(oldCommitID, newCommitID string, patterns []glob.Glob, limit int, env []st… 452 affectedFiles, err := git.GetAffectedFiles(oldCommitID, newCommitID, env, repo) 478 func CheckUnprotectedFiles(oldCommitID, newCommitID string, patterns []glob.Glob, env []string, rep… 482 affectedFiles, err := git.GetAffectedFiles(oldCommitID, newCommitID, env, repo)
|
/dports/www/gitea/gitea-1.16.5/modules/git/ |
H A D | diff.go | 280 func GetAffectedFiles(oldCommitID, newCommitID string, env []string, repo *Repository) ([]string, e… 294 err = NewCommand("diff", "--name-only", oldCommitID, newCommitID). 316 … get affected files for commits from %s to %s in %s: %v", oldCommitID, newCommitID, repo.Path, err)
|
/dports/www/gitea/gitea-1.16.5/models/ |
H A D | issue_comment.go | 1321 func CreatePushPullComment(pusher *user_model.User, pr *PullRequest, oldCommitID, newCommitID strin… 1322 if pr.HasMerged || oldCommitID == "" || newCommitID == "" { 1334 …data.CommitIDs, data.IsForcePush, err = getCommitIDsFromRepo(pr.BaseRepo, oldCommitID, newCommitID… 1356 func getCommitIDsFromRepo(repo *repo_model.Repository, oldCommitID, newCommitID, baseBranch string)… argument 1376 commitIDs[1] = newCommitID 1381 newCommit, err := gitRepo.GetCommit(newCommitID)
|
/dports/www/gitea/gitea-1.16.5/models/repo/ |
H A D | repo.go | 458 func (repo *Repository) ComposeCompareURL(oldCommitID, newCommitID string) string { 459 ….PathEscape(repo.Name), util.PathEscapeSegments(oldCommitID), util.PathEscapeSegments(newCommitID))
|
/dports/www/gitea/gitea-1.16.5/cmd/ |
H A D | hook.go | 238 newCommitID := string(fields[1]) 248 newCommitIDs[count] = newCommitID
|