code.gitea.io/gitea@v1.19.3/modules/git/internal/cmdarg.go (about) 1 // Copyright 2023 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package internal 5 6 // CmdArg represents a command argument for git command, and it will be used for the git command directly without any further processing. 7 // In most cases, you should use the "AddXxx" functions to add arguments, but not use this type directly. 8 // Casting a risky (user-provided) string to CmdArg would cause security issues if it's injected with a "--xxx" argument. 9 type CmdArg string