aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/repo/git.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_defs/repo/git.bzl')
-rw-r--r--tools/build_defs/repo/git.bzl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/build_defs/repo/git.bzl b/tools/build_defs/repo/git.bzl
index 1ea5804d56..a46330542c 100644
--- a/tools/build_defs/repo/git.bzl
+++ b/tools/build_defs/repo/git.bzl
@@ -102,6 +102,7 @@ _common_attrs = {
"strip_prefix": attr.string(default = ""),
"patches": attr.label_list(default = []),
"patch_tool": attr.string(default = "patch"),
+ "patch_args": attr.string_list(default = ["-p0"]),
"patch_cmds": attr.string_list(default = []),
}
@@ -161,6 +162,7 @@ Args:
patches: A list of files that are to be applied as patches after extracting
the archive.
patch_tool: the patch(1) utility to use.
+ patch_args: arguments given to the patch tool, defaults to ["-p0"]
patch_cmds: sequence of commands to be applied after patches are applied.
"""
@@ -196,5 +198,6 @@ Args:
patches: A list of files that are to be applied as patches after extracting
the archive.
patch_tool: the patch(1) utility to use.
+ patch_args: arguments given to the patch tool, defaults to ["-p0"]
patch_cmds: sequence of commands to be applied after patches are applied.
"""