gitea源码

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