Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Okstad <pokstad@gitlab.com>2019-09-13 11:43:58 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-09-13 11:43:58 +0300
commit030e64c6d17cd5904d6ef172afd112d77bf41308 (patch)
tree0239834bb23bdc749a6182d4ac4e8544d1621160 /internal/git
parent3bc95d511c80033f87ac512deb3fbbc3bfc383b4 (diff)
Add dedicated CI job for deprecation warnings
Diffstat (limited to 'internal/git')
-rw-r--r--internal/git/command.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/git/command.go b/internal/git/command.go
index fc10324f2..219b10dd6 100644
--- a/internal/git/command.go
+++ b/internal/git/command.go
@@ -11,6 +11,8 @@ import (
)
// Command creates a git.Command with the given args and Repository
+//
+// Deprecated: use git.SafeCmd instead
func Command(ctx context.Context, repo repository.GitRepo, args ...string) (*command.Command, error) {
args, env, err := argsAndEnv(repo, args...)
if err != nil {
@@ -22,6 +24,8 @@ func Command(ctx context.Context, repo repository.GitRepo, args ...string) (*com
// StdinCommand creates a git.Command with the given args and Repository that is
// suitable for Write()ing to
+//
+// Deprecated: Use git.SafeStdinCmd instead
func StdinCommand(ctx context.Context, repo repository.GitRepo, args ...string) (*command.Command, error) {
args, env, err := argsAndEnv(repo, args...)
if err != nil {
@@ -43,6 +47,8 @@ func argsAndEnv(repo repository.GitRepo, args ...string) ([]string, []string, er
}
// BareCommand creates a git.Command with the given args, stdin/stdout/stderr, and env
+//
+// Deprecated: use git.SafeBareCmd
func BareCommand(ctx context.Context, stdin io.Reader, stdout, stderr io.Writer, env []string, args ...string) (*command.Command, error) {
env = append(env, command.GitEnv...)