diff options
author | Paul Okstad <pokstad@gitlab.com> | 2019-09-13 11:43:58 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2019-09-13 11:43:58 +0300 |
commit | 030e64c6d17cd5904d6ef172afd112d77bf41308 (patch) | |
tree | 0239834bb23bdc749a6182d4ac4e8544d1621160 /internal/git | |
parent | 3bc95d511c80033f87ac512deb3fbbc3bfc383b4 (diff) |
Add dedicated CI job for deprecation warnings
Diffstat (limited to 'internal/git')
-rw-r--r-- | internal/git/command.go | 6 |
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...) |