diff options
author | John Cai <jcai@gitlab.com> | 2023-08-01 18:41:49 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2023-08-02 20:56:45 +0300 |
commit | 04fc040df30d68cac5b0102bd5d2f5f625655e07 (patch) | |
tree | 71d099544ea07a478741a3ae40eae394d596284b /internal/git2go | |
parent | 1a47d2a9c49bf2dbc634f75f6e12992a60accf84 (diff) |
gitaly-git2go: Remove revert
Now that git2go's revert is not called anywhere, remove it.
Diffstat (limited to 'internal/git2go')
-rw-r--r-- | internal/git2go/revert.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/internal/git2go/revert.go b/internal/git2go/revert.go deleted file mode 100644 index b3210f730..000000000 --- a/internal/git2go/revert.go +++ /dev/null @@ -1,38 +0,0 @@ -package git2go - -import ( - "context" - "time" - - "gitlab.com/gitlab-org/gitaly/v16/internal/git" - "gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/storage" -) - -// RevertCommand contains parameters required to execute a revert via gitaly-git2go. -type RevertCommand struct { - // Repository is the path to execute the revert in. - Repository string - // AuthorName is the author name of revert commit. - AuthorName string - // AuthorMail is the author mail of revert commit. - AuthorMail string - // AuthorDate is the author date of revert commit. - AuthorDate time.Time - // Message is the message to be used for the revert commit. - Message string - // Ours is the commit that the revert is applied to. - Ours string - // Revert is the commit to be reverted. - Revert string - // Mainline is the parent to be considered the mainline - Mainline uint - // SigningKey is a path to the key to sign commit using OpenPGP - SigningKey string -} - -// Revert reverts a commit via gitaly-git2go. -func (b *Executor) Revert(ctx context.Context, repo storage.Repository, r RevertCommand) (git.ObjectID, error) { - r.SigningKey = b.signingKey - - return b.runWithGob(ctx, repo, "revert", r) -} |