-
+
+
+
+ {repo && (
+
+ )}
+
+
+
+
+ Patch files
+
+ {files && {count === 1 ? t`${count} file` : t`${count} files`}}
- ) : (
- f.path}
- rowHeight={rowHeight}
- aria-label="Patch files"
- className={styles.boxList}
- empty={
+ {error ? (
+
+ {error}
+
+ ) : !files ? (
+
+
+
+ ) : (
+ f.path}
+ aria-label="Patch files"
+ className={previewStyles.list}
+ empty={No changes}
+ renderItem={(file) => }
+ />
+ )}
+ {failing > 0 && (
+
+
- No changes
+ {failing === 1
+ ? t`${failing} file will be merged; conflicts open in the merge tool`
+ : t`${failing} files will be merged; conflicts open in the merge tool`}
- }
- renderItem={(f) => (
-
-
-
- {baseName(f.path)}
-
- {f.oldPath ? tx`from ${f.oldPath}` : dirName(f.path)}
-
- {f.binary ? tx("binary") : `+${f.added} −${f.removed}`}
- {!f.applies && }
-
- )}
- />
- )}
+
+ )}
+
);
diff --git a/src/platform/locales/text/en.json b/src/platform/locales/text/en.json
index b6172683b..22f06dc27 100644
--- a/src/platform/locales/text/en.json
+++ b/src/platform/locales/text/en.json
@@ -391,6 +391,8 @@
"String ({chars} chars)": "String ({chars} chars)",
"Roll back the changes to {path}?": "Roll back the changes to {path}?",
"Roll back the changes to {count} files?": "Roll back the changes to {count} files?",
+ "Apply Patch": "Apply Patch",
+ "Patch source": "Patch source",
"They go back to how they were when the task started, in the task's worktree.": "They go back to how they were when the task started, in the task's worktree.",
"They go back to how they were when the task started. Edits of yours made to them since then are lost too; edits from before the task are kept.": "They go back to how they were when the task started. Edits of yours made to them since then are lost too; edits from before the task are kept.",
"They go back to the last commit; changes made after it are lost.": "They go back to the last commit; changes made after it are lost.",
diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json
index ae449cdff..e0d985875 100644
--- a/src/platform/locales/text/zh.json
+++ b/src/platform/locales/text/zh.json
@@ -2163,6 +2163,7 @@
"Patch destination": "补丁目标",
"Patch file": "补丁文件",
"Patch files": "补丁文件",
+ "Patch source": "补丁来源",
"Path From Content Root": "来自内容根的路径",
"Path of the current file relative to the project": "当前文件相对于项目的路径",
"Path to Git executable": "Git 可执行文件路径",
@@ -5114,6 +5115,7 @@
"No revert in progress": "没有正在进行的还原",
"No patch application in progress": "没有正在进行的补丁应用",
"Apply Patch: {source}": "应用补丁:{source}",
+ "Apply Patch": "应用补丁",
"Drop {count} commits from the current branch? Their changes are removed.": "是否从当前分支丢弃 {count} 个提交?它们的更改将被移除。",
"Drop commit {id} “{summary}” from the current branch? Its changes are removed.": "是否从当前分支丢弃提交 {id}“{summary}”?其更改将被移除。",
"Action for {id}": "{id} 的操作",