From 030e64c6d17cd5904d6ef172afd112d77bf41308 Mon Sep 17 00:00:00 2001 From: Paul Okstad Date: Fri, 13 Sep 2019 08:43:58 +0000 Subject: Add dedicated CI job for deprecation warnings --- internal/git/command.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/git') 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...) -- cgit v1.2.3