diff --git a/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/impl/Git.kt b/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/impl/Git.kt index db97848f1038..3c6916f85842 100644 --- a/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/impl/Git.kt +++ b/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/impl/Git.kt @@ -27,8 +27,12 @@ class Git(private val dir: Path) { return executeWithNullSeparatedOutput("git", "ls-files", "-z") } - fun mv(source: Path, destination: Path) { - execute("git", "mv", source.pathString, destination.pathString) + fun rm(files: List) { + execute("git", "rm", *files.map { it.pathString }.toTypedArray()) + } + + fun add(files: List) { + execute("git", "add", *files.map { it.pathString }.toTypedArray()) } fun currentCommitShortHash(): String {