You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmdarg.go 494B

123456789
  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