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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-01-13 18:49:41 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-01-14 09:46:55 +0300
commit8b2315f89d1094a21a387ff2170bef0b3c8056d3 (patch)
tree862c2c5fd2281ad28b4ade9f95276315d8842648 /doc/serverside_git_usage.md
parent4067e01561e16832b12dd21abe197a00d08b8a7f (diff)
git: Rename SafeCmd() to NewCommand()
Back when we introduced the Git DSL, we still had conflicting sets of safe and unsafe functions. Because of this legacy, our safe set of functions is still has the "Safe" prefix. This commit now ends that chapter and renames `SafeCmd()`. In alginment with the preceding renames, this is being renamed to `NewCommand()`.
Diffstat (limited to 'doc/serverside_git_usage.md')
-rw-r--r--doc/serverside_git_usage.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/serverside_git_usage.md b/doc/serverside_git_usage.md
index a3d36e7c7..dafa58993 100644
--- a/doc/serverside_git_usage.md
+++ b/doc/serverside_git_usage.md
@@ -33,7 +33,7 @@ altered.
#### Executing Git commands
-When executing Git, developers should always use the `git.SafeCmd()` and sibling
+When executing Git, developers should always use the `git.NewCommand()` and sibling
interfaces. These make sure Gitaly is protected against command injection, the
correct `git` is used, and correct setup for observable command invocations are
used. When working with `git(1)` in Ruby, please be sure to read the