@noldova/git.window 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/package.json +34 -9
  2. package/src/api/index.d.ts +1593 -16
  3. package/src/api/index.js +33 -0
  4. package/src/api/index.js.map +1 -1
  5. package/src/app/components/git-account-dialog/git-account-dialog.component.js +29 -0
  6. package/src/app/components/git-account-dialog/git-account-dialog.component.js.map +1 -0
  7. package/src/app/components/git-accounts/git-accounts.component.js +44 -0
  8. package/src/app/components/git-accounts/git-accounts.component.js.map +1 -0
  9. package/src/app/components/git-agents/git-agents.component.js +54 -0
  10. package/src/app/components/git-agents/git-agents.component.js.map +1 -0
  11. package/src/app/components/git-branch-card/git-branch-card.component.js +6 -4
  12. package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
  13. package/src/app/components/git-branch-drop/git-branch-drop.component.js +84 -0
  14. package/src/app/components/git-branch-drop/git-branch-drop.component.js.map +1 -0
  15. package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +38 -0
  16. package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js.map +1 -0
  17. package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +34 -0
  18. package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js.map +1 -0
  19. package/src/app/components/git-command-log/git-command-log.component.js +91 -0
  20. package/src/app/components/git-command-log/git-command-log.component.js.map +1 -0
  21. package/src/app/components/git-commit-card/git-commit-card.component.js +41 -6
  22. package/src/app/components/git-commit-card/git-commit-card.component.js.map +1 -1
  23. package/src/app/components/git-commit-detail/git-commit-detail.component.js +263 -0
  24. package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -0
  25. package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +27 -0
  26. package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js.map +1 -0
  27. package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +26 -0
  28. package/src/app/components/git-conflict-detail/git-conflict-detail.component.js.map +1 -0
  29. package/src/app/components/git-conflicts/git-conflicts.component.js +251 -0
  30. package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -0
  31. package/src/app/components/git-diff-files/git-diff-files.component.js +178 -0
  32. package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -0
  33. package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +29 -0
  34. package/src/app/components/git-discard-dialog/git-discard-dialog.component.js.map +1 -0
  35. package/src/app/components/git-file-group/git-file-group.component.js +78 -5
  36. package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
  37. package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +23 -0
  38. package/src/app/components/git-file-layout-button/git-file-layout-button.component.js.map +1 -0
  39. package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +30 -0
  40. package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js.map +1 -0
  41. package/src/app/components/git-history/git-history.component.js +480 -0
  42. package/src/app/components/git-history/git-history.component.js.map +1 -0
  43. package/src/app/components/git-host-row/git-host-row.component.js +3 -4
  44. package/src/app/components/git-host-row/git-host-row.component.js.map +1 -1
  45. package/src/app/components/git-person-avatar/git-person-avatar.component.js +44 -0
  46. package/src/app/components/git-person-avatar/git-person-avatar.component.js.map +1 -0
  47. package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +118 -0
  48. package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map +1 -0
  49. package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +123 -0
  50. package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js.map +1 -0
  51. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +228 -0
  52. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -0
  53. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +211 -0
  54. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -0
  55. package/src/app/components/git-pull-requests/git-pull-requests.component.js +100 -0
  56. package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -0
  57. package/src/app/components/git-rebase/git-rebase.component.js +392 -0
  58. package/src/app/components/git-rebase/git-rebase.component.js.map +1 -0
  59. package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +34 -0
  60. package/src/app/components/git-rebase-preview/git-rebase-preview.component.js.map +1 -0
  61. package/src/app/components/git-reference-text/git-reference-text.component.js +56 -0
  62. package/src/app/components/git-reference-text/git-reference-text.component.js.map +1 -0
  63. package/src/app/components/git-repository/git-repository.component.js +289 -0
  64. package/src/app/components/git-repository/git-repository.component.js.map +1 -0
  65. package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +27 -0
  66. package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js.map +1 -0
  67. package/src/app/components/git-undo-menu/git-undo-menu.component.js +40 -0
  68. package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -0
  69. package/src/app/components/git-view/git-view.component.js +62 -10
  70. package/src/app/components/git-view/git-view.component.js.map +1 -1
  71. package/src/app/components/git-workspace/git-visible.directive.js +27 -0
  72. package/src/app/components/git-workspace/git-visible.directive.js.map +1 -0
  73. package/src/app/components/git-workspace/git-workspace.component.js +301 -0
  74. package/src/app/components/git-workspace/git-workspace.component.js.map +1 -0
  75. package/src/app/components/git-workspace-across/git-workspace-across.component.js +128 -0
  76. package/src/app/components/git-workspace-across/git-workspace-across.component.js.map +1 -0
  77. package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +32 -0
  78. package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js.map +1 -0
  79. package/src/app/components/git-workspaces/git-workspaces.component.js +55 -0
  80. package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -0
  81. package/src/app/enums/git-agent-state.js +15 -0
  82. package/src/app/enums/git-agent-state.js.map +1 -0
  83. package/src/app/enums/git-file-layout.js +14 -0
  84. package/src/app/enums/git-file-layout.js.map +1 -0
  85. package/src/app/enums/git-history-action.js +19 -0
  86. package/src/app/enums/git-history-action.js.map +1 -0
  87. package/src/app/enums/git-host-card-state.js +15 -0
  88. package/src/app/enums/git-host-card-state.js.map +1 -0
  89. package/src/app/enums/git-host-feature.js +17 -0
  90. package/src/app/enums/git-host-feature.js.map +1 -0
  91. package/src/app/enums/git-pull-request-state.js +15 -0
  92. package/src/app/enums/git-pull-request-state.js.map +1 -0
  93. package/src/app/enums/git-pull-requests-state.js +15 -0
  94. package/src/app/enums/git-pull-requests-state.js.map +1 -0
  95. package/src/app/enums/git-resolved-by.js +16 -0
  96. package/src/app/enums/git-resolved-by.js.map +1 -0
  97. package/src/app/enums/git-workspace-view.js +15 -0
  98. package/src/app/enums/git-workspace-view.js.map +1 -0
  99. package/src/app/interfaces/i-git-agents.js +8 -0
  100. package/src/app/interfaces/i-git-agents.js.map +1 -0
  101. package/src/app/interfaces/i-git-avatars.js +8 -0
  102. package/src/app/interfaces/i-git-avatars.js.map +1 -0
  103. package/src/app/interfaces/i-git-commit-prefixes.js +8 -0
  104. package/src/app/interfaces/i-git-commit-prefixes.js.map +1 -0
  105. package/src/app/interfaces/i-git-host-account.js +8 -0
  106. package/src/app/interfaces/i-git-host-account.js.map +1 -0
  107. package/src/app/interfaces/i-git-link-references.js +8 -0
  108. package/src/app/interfaces/i-git-link-references.js.map +1 -0
  109. package/src/app/interfaces/i-git-pull-request-host.js +8 -0
  110. package/src/app/interfaces/i-git-pull-request-host.js.map +1 -0
  111. package/src/app/interfaces/i-git-pull-requests.js +8 -0
  112. package/src/app/interfaces/i-git-pull-requests.js.map +1 -0
  113. package/src/app/interfaces/i-git-repository-links.js +8 -0
  114. package/src/app/interfaces/i-git-repository-links.js.map +1 -0
  115. package/src/app/interfaces/i-git-workspace-across-page.js +8 -0
  116. package/src/app/interfaces/i-git-workspace-across-page.js.map +1 -0
  117. package/src/app/interfaces/i-provided-git-commit-prefixes.js +8 -0
  118. package/src/app/interfaces/i-provided-git-commit-prefixes.js.map +1 -0
  119. package/src/app/interfaces/i-provided-git-host-account.js +8 -0
  120. package/src/app/interfaces/i-provided-git-host-account.js.map +1 -0
  121. package/src/app/models/focus-place.js +16 -0
  122. package/src/app/models/focus-place.js.map +1 -0
  123. package/src/app/models/focus-survivor.js +16 -0
  124. package/src/app/models/focus-survivor.js.map +1 -0
  125. package/src/app/models/git-agent-row.js +20 -0
  126. package/src/app/models/git-agent-row.js.map +1 -0
  127. package/src/app/models/git-branch-drop.js +40 -0
  128. package/src/app/models/git-branch-drop.js.map +1 -0
  129. package/src/app/models/git-branch-menu-item.js +3 -2
  130. package/src/app/models/git-branch-menu-item.js.map +1 -1
  131. package/src/app/models/git-branch-pull-request.js +49 -0
  132. package/src/app/models/git-branch-pull-request.js.map +1 -0
  133. package/src/app/models/git-branch-row.js +24 -0
  134. package/src/app/models/git-branch-row.js.map +1 -0
  135. package/src/app/models/git-branch-tree-node.js +16 -0
  136. package/src/app/models/git-branch-tree-node.js.map +1 -0
  137. package/src/app/models/git-branch-view.js +27 -0
  138. package/src/app/models/git-branch-view.js.map +1 -0
  139. package/src/app/models/git-bulk-outcome.js +16 -0
  140. package/src/app/models/git-bulk-outcome.js.map +1 -0
  141. package/src/app/models/git-bulk-result.js +18 -0
  142. package/src/app/models/git-bulk-result.js.map +1 -0
  143. package/src/app/models/git-bulk-target.js +22 -0
  144. package/src/app/models/git-bulk-target.js.map +1 -0
  145. package/src/app/models/git-check-counts.js +19 -0
  146. package/src/app/models/git-check-counts.js.map +1 -0
  147. package/src/app/models/git-chip-drag.js +20 -0
  148. package/src/app/models/git-chip-drag.js.map +1 -0
  149. package/src/app/models/git-chip-split.js +16 -0
  150. package/src/app/models/git-chip-split.js.map +1 -0
  151. package/src/app/models/git-code-span.js +54 -0
  152. package/src/app/models/git-code-span.js.map +1 -0
  153. package/src/app/models/git-comments-link.js +16 -0
  154. package/src/app/models/git-comments-link.js.map +1 -0
  155. package/src/app/models/git-commit-comments.js +18 -0
  156. package/src/app/models/git-commit-comments.js.map +1 -0
  157. package/src/app/models/git-commit-file-row.js +28 -0
  158. package/src/app/models/git-commit-file-row.js.map +1 -0
  159. package/src/app/models/git-commit-pull-request.js +28 -0
  160. package/src/app/models/git-commit-pull-request.js.map +1 -0
  161. package/src/app/models/git-commit-view.js +16 -0
  162. package/src/app/models/git-commit-view.js.map +1 -0
  163. package/src/app/models/git-conflict-detail.js +20 -0
  164. package/src/app/models/git-conflict-detail.js.map +1 -0
  165. package/src/app/models/git-detail-front.js +16 -0
  166. package/src/app/models/git-detail-front.js.map +1 -0
  167. package/src/app/models/git-detail-page.js +16 -0
  168. package/src/app/models/git-detail-page.js.map +1 -0
  169. package/src/app/models/git-diff-row.js +19 -8
  170. package/src/app/models/git-diff-row.js.map +1 -1
  171. package/src/app/models/git-file-group.js +2 -1
  172. package/src/app/models/git-file-group.js.map +1 -1
  173. package/src/app/models/git-file-item.js +22 -0
  174. package/src/app/models/git-file-item.js.map +1 -0
  175. package/src/app/models/git-file-line.js +16 -0
  176. package/src/app/models/git-file-line.js.map +1 -0
  177. package/src/app/models/git-file-row.js +4 -3
  178. package/src/app/models/git-file-row.js.map +1 -1
  179. package/src/app/models/git-first-conflicts-read.js +16 -0
  180. package/src/app/models/git-first-conflicts-read.js.map +1 -0
  181. package/src/app/models/git-folder-page.js +16 -0
  182. package/src/app/models/git-folder-page.js.map +1 -0
  183. package/src/app/models/git-force-push-offer.js +25 -0
  184. package/src/app/models/git-force-push-offer.js.map +1 -0
  185. package/src/app/models/git-graph-line.js +22 -0
  186. package/src/app/models/git-graph-line.js.map +1 -0
  187. package/src/app/models/git-graph-row.js +26 -0
  188. package/src/app/models/git-graph-row.js.map +1 -0
  189. package/src/app/models/git-history-ask.js +16 -0
  190. package/src/app/models/git-history-ask.js.map +1 -0
  191. package/src/app/models/git-history-row.js +39 -0
  192. package/src/app/models/git-history-row.js.map +1 -0
  193. package/src/app/models/git-history-toolbar.js +16 -0
  194. package/src/app/models/git-history-toolbar.js.map +1 -0
  195. package/src/app/models/git-host-card.js +24 -0
  196. package/src/app/models/git-host-card.js.map +1 -0
  197. package/src/app/models/git-host-row-view.js +9 -0
  198. package/src/app/models/git-host-row-view.js.map +1 -0
  199. package/src/app/models/git-host-tally.js +16 -0
  200. package/src/app/models/git-host-tally.js.map +1 -0
  201. package/src/app/models/git-labeled-prediction.js +16 -0
  202. package/src/app/models/git-labeled-prediction.js.map +1 -0
  203. package/src/app/models/git-lane-target.js +16 -0
  204. package/src/app/models/git-lane-target.js.map +1 -0
  205. package/src/app/models/git-lane.js +21 -0
  206. package/src/app/models/git-lane.js.map +1 -0
  207. package/src/app/models/git-last-write.js +18 -0
  208. package/src/app/models/git-last-write.js.map +1 -0
  209. package/src/app/models/git-line-counts.js +20 -0
  210. package/src/app/models/git-line-counts.js.map +1 -0
  211. package/src/app/models/git-marked-line.js +19 -0
  212. package/src/app/models/git-marked-line.js.map +1 -0
  213. package/src/app/models/git-moving-folder.js +16 -0
  214. package/src/app/models/git-moving-folder.js.map +1 -0
  215. package/src/app/models/git-operation-name.js +17 -0
  216. package/src/app/models/git-operation-name.js.map +1 -0
  217. package/src/app/models/git-path-entry.js +20 -0
  218. package/src/app/models/git-path-entry.js.map +1 -0
  219. package/src/app/models/git-predicted-line.js +18 -0
  220. package/src/app/models/git-predicted-line.js.map +1 -0
  221. package/src/app/models/git-prediction-ask.js +16 -0
  222. package/src/app/models/git-prediction-ask.js.map +1 -0
  223. package/src/app/models/git-provided-pull-requests.js +16 -0
  224. package/src/app/models/git-provided-pull-requests.js.map +1 -0
  225. package/src/app/models/git-pull-request-list.js +33 -0
  226. package/src/app/models/git-pull-request-list.js.map +1 -0
  227. package/src/app/models/git-pull-request-read.js +16 -0
  228. package/src/app/models/git-pull-request-read.js.map +1 -0
  229. package/src/app/models/git-pull-request-row.js +34 -0
  230. package/src/app/models/git-pull-request-row.js.map +1 -0
  231. package/src/app/models/git-pull-request-stack.js +18 -0
  232. package/src/app/models/git-pull-request-stack.js.map +1 -0
  233. package/src/app/models/git-rebase-landing.js +16 -0
  234. package/src/app/models/git-rebase-landing.js.map +1 -0
  235. package/src/app/models/git-rebase-preview.js +38 -0
  236. package/src/app/models/git-rebase-preview.js.map +1 -0
  237. package/src/app/models/git-rebase-row-plan.js +16 -0
  238. package/src/app/models/git-rebase-row-plan.js.map +1 -0
  239. package/src/app/models/git-rebase-row.js +82 -0
  240. package/src/app/models/git-rebase-row.js.map +1 -0
  241. package/src/app/models/git-rebase-start.js +16 -0
  242. package/src/app/models/git-rebase-start.js.map +1 -0
  243. package/src/app/models/git-ref-chip.js +75 -0
  244. package/src/app/models/git-ref-chip.js.map +1 -0
  245. package/src/app/models/git-reference-part.js +45 -0
  246. package/src/app/models/git-reference-part.js.map +1 -0
  247. package/src/app/models/git-repository-link.js +25 -0
  248. package/src/app/models/git-repository-link.js.map +1 -0
  249. package/src/app/models/git-repository-summary.js +60 -0
  250. package/src/app/models/git-repository-summary.js.map +1 -0
  251. package/src/app/models/git-resolved-file.js +16 -0
  252. package/src/app/models/git-resolved-file.js.map +1 -0
  253. package/src/app/models/git-reviews-read.js +18 -0
  254. package/src/app/models/git-reviews-read.js.map +1 -0
  255. package/src/app/models/git-row-pull-request.js +16 -0
  256. package/src/app/models/git-row-pull-request.js.map +1 -0
  257. package/src/app/models/git-shared-branch.js +16 -0
  258. package/src/app/models/git-shared-branch.js.map +1 -0
  259. package/src/app/models/git-signing-read.js +16 -0
  260. package/src/app/models/git-signing-read.js.map +1 -0
  261. package/src/app/models/git-status-bar-items.js +18 -0
  262. package/src/app/models/git-status-bar-items.js.map +1 -0
  263. package/src/app/models/git-switch-target.js +16 -0
  264. package/src/app/models/git-switch-target.js.map +1 -0
  265. package/src/app/models/git-text-around.js +18 -0
  266. package/src/app/models/git-text-around.js.map +1 -0
  267. package/src/app/models/git-track-counts.js +17 -0
  268. package/src/app/models/git-track-counts.js.map +1 -0
  269. package/src/app/models/git-workspace-across.js +22 -0
  270. package/src/app/models/git-workspace-across.js.map +1 -0
  271. package/src/app/models/git-workspace-host.js +55 -0
  272. package/src/app/models/git-workspace-host.js.map +1 -0
  273. package/src/app/models/git-workspace-overview.js +96 -0
  274. package/src/app/models/git-workspace-overview.js.map +1 -0
  275. package/src/app/models/git-workspace-review.js +20 -0
  276. package/src/app/models/git-workspace-review.js.map +1 -0
  277. package/src/app/models/git-workspace-reviews.js +16 -0
  278. package/src/app/models/git-workspace-reviews.js.map +1 -0
  279. package/src/app/models/git-workspace-row.js +185 -0
  280. package/src/app/models/git-workspace-row.js.map +1 -0
  281. package/src/app/models/git-workspace-run.js +23 -0
  282. package/src/app/models/git-workspace-run.js.map +1 -0
  283. package/src/app/models/git-workspace-side.js +25 -0
  284. package/src/app/models/git-workspace-side.js.map +1 -0
  285. package/src/app/models/git-workspace-view-count.js +16 -0
  286. package/src/app/models/git-workspace-view-count.js.map +1 -0
  287. package/src/app/models/git-workspace-view-label.js +16 -0
  288. package/src/app/models/git-workspace-view-label.js.map +1 -0
  289. package/src/app/models/git-workspace.js +47 -0
  290. package/src/app/models/git-workspace.js.map +1 -0
  291. package/src/app/models/thread-line.js +18 -0
  292. package/src/app/models/thread-line.js.map +1 -0
  293. package/src/app/services/commit-labels.js +44 -0
  294. package/src/app/services/commit-labels.js.map +1 -0
  295. package/src/app/services/focus-keeper.js +76 -0
  296. package/src/app/services/focus-keeper.js.map +1 -0
  297. package/src/app/services/git-agents.js +18 -0
  298. package/src/app/services/git-agents.js.map +1 -0
  299. package/src/app/services/git-avatars.js +34 -0
  300. package/src/app/services/git-avatars.js.map +1 -0
  301. package/src/app/services/git-branch-tree.js +50 -0
  302. package/src/app/services/git-branch-tree.js.map +1 -0
  303. package/src/app/services/git-code-colors.js +56 -0
  304. package/src/app/services/git-code-colors.js.map +1 -0
  305. package/src/app/services/git-command-logs.js +33 -0
  306. package/src/app/services/git-command-logs.js.map +1 -0
  307. package/src/app/services/git-commit-details.js +22 -0
  308. package/src/app/services/git-commit-details.js.map +1 -0
  309. package/src/app/services/git-commit-files.js +35 -0
  310. package/src/app/services/git-commit-files.js.map +1 -0
  311. package/src/app/services/git-commit-prefixes.js +32 -0
  312. package/src/app/services/git-commit-prefixes.js.map +1 -0
  313. package/src/app/services/git-conflict-details.js +22 -0
  314. package/src/app/services/git-conflict-details.js.map +1 -0
  315. package/src/app/services/git-counts.js +17 -0
  316. package/src/app/services/git-counts.js.map +1 -0
  317. package/src/app/services/git-detail-view.js +81 -0
  318. package/src/app/services/git-detail-view.js.map +1 -0
  319. package/src/app/services/git-file-tree.js +19 -0
  320. package/src/app/services/git-file-tree.js.map +1 -0
  321. package/src/app/services/git-folder.js +32 -6
  322. package/src/app/services/git-folder.js.map +1 -1
  323. package/src/app/services/git-graph-layout.js +80 -0
  324. package/src/app/services/git-graph-layout.js.map +1 -0
  325. package/src/app/services/git-gravatars.js +30 -0
  326. package/src/app/services/git-gravatars.js.map +1 -0
  327. package/src/app/services/git-history-asks.js +26 -0
  328. package/src/app/services/git-history-asks.js.map +1 -0
  329. package/src/app/services/git-history-rows.js +48 -0
  330. package/src/app/services/git-history-rows.js.map +1 -0
  331. package/src/app/services/git-history-selection.js +17 -0
  332. package/src/app/services/git-history-selection.js.map +1 -0
  333. package/src/app/services/git-host-accounts.js +33 -0
  334. package/src/app/services/git-host-accounts.js.map +1 -0
  335. package/src/app/services/git-last-write-undo.js +99 -0
  336. package/src/app/services/git-last-write-undo.js.map +1 -0
  337. package/src/app/services/git-link-reference-set.js +33 -0
  338. package/src/app/services/git-link-reference-set.js.map +1 -0
  339. package/src/app/services/git-link-references.js +31 -0
  340. package/src/app/services/git-link-references.js.map +1 -0
  341. package/src/app/services/git-new-branch.js +21 -0
  342. package/src/app/services/git-new-branch.js.map +1 -0
  343. package/src/app/services/git-path-layout.js +77 -0
  344. package/src/app/services/git-path-layout.js.map +1 -0
  345. package/src/app/services/git-pending-switch.js +30 -0
  346. package/src/app/services/git-pending-switch.js.map +1 -0
  347. package/src/app/services/git-pull-requests.js +43 -0
  348. package/src/app/services/git-pull-requests.js.map +1 -0
  349. package/src/app/services/git-rebase-previews.js +22 -0
  350. package/src/app/services/git-rebase-previews.js.map +1 -0
  351. package/src/app/services/git-rebasing.js +48 -0
  352. package/src/app/services/git-rebasing.js.map +1 -0
  353. package/src/app/services/git-recent-repositories.js +35 -0
  354. package/src/app/services/git-recent-repositories.js.map +1 -0
  355. package/src/app/services/git-repository-links.js +20 -0
  356. package/src/app/services/git-repository-links.js.map +1 -0
  357. package/src/app/services/git-repository-summaries.js +146 -0
  358. package/src/app/services/git-repository-summaries.js.map +1 -0
  359. package/src/app/services/git-resolving.js +32 -0
  360. package/src/app/services/git-resolving.js.map +1 -0
  361. package/src/app/services/git-runtime-client.js +112 -1
  362. package/src/app/services/git-runtime-client.js.map +1 -1
  363. package/src/app/services/git-status-bar.js +81 -0
  364. package/src/app/services/git-status-bar.js.map +1 -0
  365. package/src/app/services/git-status-follower.js +78 -0
  366. package/src/app/services/git-status-follower.js.map +1 -0
  367. package/src/app/services/git-view-options.js +15 -0
  368. package/src/app/services/git-view-options.js.map +1 -0
  369. package/src/app/services/git-view-state.service.js +232 -17
  370. package/src/app/services/git-view-state.service.js.map +1 -1
  371. package/src/app/services/git-viewing.js +31 -0
  372. package/src/app/services/git-viewing.js.map +1 -0
  373. package/src/app/services/git-window-part.js +93 -4
  374. package/src/app/services/git-window-part.js.map +1 -1
  375. package/src/app/services/git-window-storage.js +27 -0
  376. package/src/app/services/git-window-storage.js.map +1 -0
  377. package/src/app/services/git-workspace-across-views.js +22 -0
  378. package/src/app/services/git-workspace-across-views.js.map +1 -0
  379. package/src/app/services/git-workspace-bulk.js +81 -0
  380. package/src/app/services/git-workspace-bulk.js.map +1 -0
  381. package/src/app/services/git-workspace-pages.js +25 -0
  382. package/src/app/services/git-workspace-pages.js.map +1 -0
  383. package/src/app/services/git-workspace-pull-requests.js +199 -0
  384. package/src/app/services/git-workspace-pull-requests.js.map +1 -0
  385. package/src/app/services/git-workspace-sides.js +22 -0
  386. package/src/app/services/git-workspace-sides.js.map +1 -0
  387. package/src/app/services/git-workspaces.js +58 -0
  388. package/src/app/services/git-workspaces.js.map +1 -0
  389. package/src/resources.js +1153 -13
  390. package/src/resources.js.map +1 -1
package/src/resources.js CHANGED
@@ -5,7 +5,18 @@
5
5
  * This source code is licensed under the license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
+ import "@noldova/context.core";
9
+ import { PredictionOutcome, RemoteTransport, SignatureState } from "@noldova/git.protocol";
10
+ import { FileChangeKind, ThreadStatus } from "@noldova/git.hosting.protocol";
11
+ import { GitPullRequestState } from "./app/enums/git-pull-request-state.js";
12
+ import { GitAgentState } from "./app/enums/git-agent-state.js";
8
13
  import { GitFileGroupKind } from "./app/enums/git-file-group-kind.js";
14
+ import { GitHostFeature } from "./app/enums/git-host-feature.js";
15
+ import { GitHistoryAction } from "./app/enums/git-history-action.js";
16
+ import { GitFileLayout } from "./app/enums/git-file-layout.js";
17
+ import { GitWorkspaceView } from "./app/enums/git-workspace-view.js";
18
+ import { GitHistoryToolbar } from "./app/models/git-history-toolbar.js";
19
+ import { GitWorkspaceViewLabel } from "./app/models/git-workspace-view-label.js";
9
20
  export class Resources {
10
21
  static maximumPathLength = 4_096;
11
22
  static absolutePathPattern = /^(?:\/|[A-Za-z]:[\\/]|\\\\)/u;
@@ -17,7 +28,35 @@ export class Resources {
17
28
  static viewIcon = "account_tree";
18
29
  static viewDefaultGroup = 0;
19
30
  static viewDefaultOrder = 20;
31
+ static accountsPage = "git.accounts";
32
+ static accountsTitle = "Accounts and hosts";
33
+ static accountsIntro = "Tokens stay in the system's secure store. Each host's features appear only where that host has them.";
34
+ static addAccount = "Add an account";
35
+ static addAccountIcon = "add";
36
+ static manageAccountIcon = "more_horiz";
37
+ static noHosts = "No host module is on, so there is no account to add.";
38
+ static featuresTitle = "What each host can do";
39
+ static featureYesIcon = "check";
40
+ static featureNoIcon = "remove";
41
+ static featureYes = "Yes";
42
+ static featureNo = "No";
43
+ static accountInput = "account";
44
+ static dialogTitleInput = "title";
45
+ static accountRowPrefix = "git.account.";
46
+ static hostFeatures = Object.values(GitHostFeature);
47
+ static hostFeatureTitles = {
48
+ [GitHostFeature.PullRequests]: "Pull requests",
49
+ [GitHostFeature.VotesAndPolicies]: "Votes and policies",
50
+ [GitHostFeature.BuildsOnCommits]: "Builds on commits",
51
+ [GitHostFeature.WorkItems]: "Work items",
52
+ [GitHostFeature.BranchFromItem]: "Branch from item",
53
+ [GitHostFeature.AutoComplete]: "Auto-complete"
54
+ };
20
55
  static getGitAddress = "https://git-scm.com/downloads";
56
+ static focusableSelector = "button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex='-1'])";
57
+ static focusedSelector = ":focus";
58
+ static disabledAttribute = "disabled";
59
+ static linkNotOpened = "The page couldn't be opened; the app's log has the details.";
21
60
  static slash = "/";
22
61
  static dot = ".";
23
62
  static ellipsis = "…";
@@ -25,16 +64,21 @@ export class Resources {
25
64
  static shownFilesMaximum = 3;
26
65
  static shortHeadLength = 7;
27
66
  static branchIconPath = "M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z";
28
- static menuClosedIcon = "expand_more";
29
- static menuOpenIcon = "expand_less";
67
+ static menuClosedIcon = "keyboard_arrow_down";
68
+ static menuOpenIcon = "keyboard_arrow_up";
30
69
  static pushIcon = "arrow_upward";
31
70
  static pullIcon = "arrow_downward";
32
71
  static publishIcon = "cloud_upload";
33
72
  static stageIcon = "add";
34
73
  static unstageIcon = "remove";
74
+ static discardIcon = "undo";
75
+ static discardLabel = "Discard";
76
+ static discardTitle = "Discard changes?";
77
+ static undoLabel = "Undo";
78
+ static discardedIcon = "restore_page";
35
79
  static commitIcon = "check";
36
- static expandIcon = "expand_more";
37
- static collapseIcon = "expand_less";
80
+ static expandIcon = "keyboard_arrow_down";
81
+ static collapseIcon = "keyboard_arrow_up";
38
82
  static wrapIcon = "wrap_text";
39
83
  static mergeIcon = "merge";
40
84
  static failureIcon = "error";
@@ -60,12 +104,13 @@ export class Resources {
60
104
  static unstageLabel = "Unstage";
61
105
  static showDiffLabel = "Show the diff";
62
106
  static hideDiffLabel = "Hide the diff";
107
+ static stageHunkLabel = "Stage hunk";
108
+ static unstageHunkLabel = "Unstage hunk";
63
109
  static wrapLinesLabel = "Wrap lines";
64
110
  static unwrapLinesLabel = "Don't wrap lines";
65
111
  static messageLabel = "Commit message";
66
112
  static messagePlaceholder = "Message";
67
113
  static commitLabel = "Commit";
68
- static commitMergeLabel = "Commit the merge";
69
114
  static branchPickerLabel = "Find or name a branch";
70
115
  static localBranchesLabel = "Local branches";
71
116
  static remoteBranchesLabel = "Remote branches";
@@ -79,7 +124,13 @@ export class Resources {
79
124
  static addedPrefix = "+";
80
125
  static removedPrefix = "-";
81
126
  static contextPrefix = " ";
127
+ static tokenClassPrefix = "token-";
82
128
  static listCut = "Git listed only part of this folder's changes.";
129
+ static formatUncheckedLfs(count) {
130
+ return count === 1
131
+ ? "One Git LFS file wasn't checked against its pointer, so it may show as changed when it isn't."
132
+ : `${Resources.formatCountStart(count)} Git LFS files weren't checked against their pointers, so they may show as changed when they aren't.`;
133
+ }
83
134
  static noChanges = "No changes";
84
135
  static dismissLabel = "Dismiss";
85
136
  static noFolderHeading = "No folder";
@@ -111,32 +162,106 @@ export class Resources {
111
162
  static groupTitles = {
112
163
  [GitFileGroupKind.Conflicts]: "Conflicts", [GitFileGroupKind.Staged]: "Staged", [GitFileGroupKind.Changes]: "Changes"
113
164
  };
165
+ static formatMoreChips(count) {
166
+ return `+${count}`;
167
+ }
168
+ static formatMoreChipsTitle(titles) {
169
+ return titles.join(Resources.listSeparator);
170
+ }
171
+ static formatRenameLabel(branch) {
172
+ return `New name for ${branch}`;
173
+ }
114
174
  static formatFolderTooLong(maximum) {
115
175
  return `the folder has more than ${maximum} characters`;
116
176
  }
117
177
  static formatChangedRefused(reason) {
118
178
  return `The Git view ignored a change event it could not read: ${reason}`;
119
179
  }
180
+ static formatSigningFailed(reason) {
181
+ return `The Git view couldn't read how commits are signed: ${reason}`;
182
+ }
183
+ static signingNotes = {
184
+ OpenPgp: "Signed with a GPG key", Ssh: "Signed with SSH key", X509: "Signed with an X.509 certificate"
185
+ };
120
186
  static formatPullHooksFailed(reason) {
121
187
  return `The Git view couldn't read the hooks a pull runs: ${reason}`;
122
188
  }
123
189
  static formatPullHooks(hooks) {
124
- if (hooks === null)
190
+ if (Object.isNull(hooks))
125
191
  return Resources.pullHooksUnread;
126
192
  return `${Resources.pullDescription}. Hooks that will run: ${hooks.length === 0 ? "None" : hooks.join(", ")}`;
127
193
  }
128
194
  static formatWatchFailed(reason) {
129
195
  return `Changes made outside the Git view aren't followed, since the folder couldn't be watched: ${reason}`;
130
196
  }
197
+ static formatStatusBarWatchFailed(folder, reason) {
198
+ return `The status bar doesn't follow changes made outside the window in ${folder}, since it couldn't be watched: ${reason}`;
199
+ }
200
+ static formatStatusBarUnwatchFailed(folder, reason) {
201
+ return `The status bar couldn't stop watching ${folder}: ${reason}`;
202
+ }
203
+ static formatStatusBarReadFailed(folder, reason) {
204
+ return `The status bar couldn't read ${folder}: ${reason}`;
205
+ }
206
+ static undoTaken = "Edit → Undo doesn't undo Git's last write in this window, as another part of the window already provides its undo.";
207
+ static formatUndoReadFailed(folder, reason) {
208
+ return `Undo couldn't read the last write of ${folder}: ${reason}`;
209
+ }
131
210
  static formatUnwatchFailed(folder, reason) {
132
211
  return `The Git view couldn't stop watching ${folder}: ${reason}`;
133
212
  }
134
213
  static formatFolderFailed(reason) {
135
214
  return `The Git view shows no folder, since the app's folder could not be read: ${reason}`;
136
215
  }
216
+ static formatPullRequestsClaimFailed(reason) {
217
+ return `The repository panel passed over a host's pull requests, since its claim failed: ${reason}`;
218
+ }
219
+ static formatAgentWorktrees(count) {
220
+ return count === 1 ? "1 worktree" : `${count} worktrees`;
221
+ }
222
+ static formatOpenPullRequests(open, hasMore, failing) {
223
+ if (open === 0)
224
+ return Resources.noPullRequest;
225
+ const count = hasMore ? `${open}+` : `${open}`;
226
+ return failing > 0 ? `${count} · ${failing} failing` : count;
227
+ }
228
+ static formatOpenPullRequestsTitle(open, hasMore, failing) {
229
+ const count = `${open}${hasMore ? "+" : ""} open ${open === 1 && !hasMore ? "pull request" : "pull requests"}`;
230
+ return failing > 0 ? `${count}, ${failing} with failing checks` : count;
231
+ }
232
+ static formatPullRequestsHost(hostName, count) {
233
+ return count > Resources.shownPullRequests ? `${hostName} · ${Resources.shownPullRequests}+` : hostName;
234
+ }
235
+ static formatPullRequestRowText(label, title) {
236
+ return `${label}${Resources.peopleSeparator}${title}`;
237
+ }
238
+ static formatPullRequestNote(failing, pending, approvals, isDraft) {
239
+ if (failing > 0)
240
+ return `${failing} failing`;
241
+ if (pending > 0)
242
+ return Resources.pullRequestsRunning;
243
+ if (approvals > 0)
244
+ return approvals === 1 ? "1 review" : `${approvals} reviews`;
245
+ return isDraft ? Resources.pullRequestsDraft : "";
246
+ }
247
+ static formatAccountRowTitle(host) {
248
+ return `${host} account`;
249
+ }
250
+ static formatAccountRowNote(host) {
251
+ return `Sign in to ${host}, see who is signed in, and sign out.`;
252
+ }
253
+ static formatSignInTitle(host) {
254
+ return `Sign in to ${host}`;
255
+ }
256
+ static formatManageAccount(host) {
257
+ return `Manage the ${host} account`;
258
+ }
137
259
  static formatHostRowFailed(reason) {
138
260
  return `The Git view shows the plain remote line, since a host row's claim failed: ${reason}`;
139
261
  }
262
+ static formatCommitPrefixFailed(reason) {
263
+ return `The commit message starts without a host's prefix, since its answer failed: ${reason}`;
264
+ }
140
265
  static formatFolderUnreadableText(folder) {
141
266
  return `Your account doesn't have permission to open this folder, ${folder}.`;
142
267
  }
@@ -158,20 +283,25 @@ export class Resources {
158
283
  static formatCommit(files) {
159
284
  return `${Resources.commitLabel} ${files} ${files === 1 ? "file" : "files"}`;
160
285
  }
161
- static formatConflictHint(files) {
162
- return `Stage the ${files} conflicted ${files === 1 ? "file" : "files"} to commit the merge.`;
286
+ static formatConflictHint(files, operation) {
287
+ return `Resolve the ${Resources.formatCount(files)} conflicted ${files === 1 ? "file" : "files"} to commit the ${Resources.operationNouns[operation]}.`;
163
288
  }
164
- static formatOperation(operation, from) {
165
- return from === null ? `${operation} into this branch` : `${operation} ${from} into this branch`;
289
+ static formatOperation(operation, from, into) {
290
+ const target = into ?? "this branch";
291
+ return Object.isNull(from) ? `${operation} into ${target}` : `${operation} ${from} into ${target}`;
166
292
  }
293
+ static resolveConflictsLabel = "Resolve conflicts";
167
294
  static formatConflictText(files) {
168
295
  return files === 0
169
296
  ? "Every conflict is resolved. Commit to finish."
170
- : `${files} ${files === 1 ? "file has" : "files have"} conflicts. Resolve them in your editor, or ask a teammate, then stage them.`;
297
+ : `${Resources.formatCountStart(files)} ${files === 1 ? "file has conflicts. Resolve it" : "files have conflicts. Resolve them"}, or abort.`;
171
298
  }
172
299
  static formatSwitchBranch(name) {
173
300
  return `${Resources.switchBranchLabel}, ${name}`;
174
301
  }
302
+ static formatHistoryOptionId(list, index) {
303
+ return `git-history-${list}-option-${index}`;
304
+ }
175
305
  static formatBranchOptionId(index) {
176
306
  return `git-branch-option-${index}`;
177
307
  }
@@ -185,20 +315,44 @@ export class Resources {
185
315
  return `${name} is a plain Git server (${host} over ${transport}): no pull requests or checks to show.`;
186
316
  }
187
317
  static formatGitTooOldHeading(version) {
188
- return version === null ? "Your Git is too old" : `Git ${version} is too old`;
318
+ return Object.isNull(version) ? "Your Git is too old" : `Git ${version} is too old`;
189
319
  }
190
320
  static formatMoreFiles(count) {
191
- return `and ${count} more`;
321
+ return `and ${Resources.formatCount(count)} more`;
192
322
  }
193
323
  static formatStage(path) {
194
324
  return `${Resources.stageLabel} ${path}`;
195
325
  }
326
+ static formatDiscard(path) {
327
+ return `Discard changes to ${path}`;
328
+ }
329
+ static formatDiscardTracked(path, undoable) {
330
+ return `The changes to ${path} in the working folder will be lost, and it goes back to what is staged. ${Resources.undoNoteOf(undoable)}`;
331
+ }
332
+ static formatDiscardUntracked(path, undoable) {
333
+ return `${path} isn't tracked, so discarding deletes it. ${Resources.undoNoteOf(undoable)}`;
334
+ }
335
+ static formatDiscarded(paths) {
336
+ return paths.length === 1 ? `Discarded the changes to ${paths.join("")}.` : `Discarded the changes to ${Resources.formatCount(paths.length)} files.`;
337
+ }
338
+ static undoNoteOf(undoable) {
339
+ return undoable ? "A checkpoint is kept, so you can undo it." : "This can't be undone.";
340
+ }
341
+ static formatStageLines(count) {
342
+ return count === 1 ? "Stage 1 line" : `Stage ${count} lines`;
343
+ }
344
+ static formatUnstageLines(count) {
345
+ return count === 1 ? "Unstage 1 line" : `Unstage ${count} lines`;
346
+ }
196
347
  static formatUnstage(path) {
197
348
  return `${Resources.unstageLabel} ${path}`;
198
349
  }
199
350
  static formatRowKey(group, path) {
200
351
  return `${group}:${path}`;
201
352
  }
353
+ static formatFolderKey(folder) {
354
+ return `folder:${folder}`;
355
+ }
202
356
  static formatDiffKey(fingerprint, scope) {
203
357
  return `${fingerprint}:${scope}`;
204
358
  }
@@ -206,5 +360,991 @@ export class Resources {
206
360
  const range = `@@ -${oldStart},${oldCount} +${newStart},${newCount} @@`;
207
361
  return header.length === 0 ? range : `${range} ${header}`;
208
362
  }
363
+ static historyDocumentName = "git.history";
364
+ static graphPageSize = 2000;
365
+ static graphBufferPixels = 1200;
366
+ static graphLoadAhead = 200;
367
+ static openHistoryCommand = "git.openHistory";
368
+ static openHistoryTitle = "Open history";
369
+ static historyIcon = "history";
370
+ static graphColorCount = 8;
371
+ static graphRowPixels = 28;
372
+ static centringRenders = 5;
373
+ static graphLanePixels = 16;
374
+ static graphLaneOffsetPixels = 14;
375
+ static graphDotPixels = 5;
376
+ static graphHeadRingPixels = 6;
377
+ static graphHeadDotPixels = 3;
378
+ static graphMinimumPixels = 80;
379
+ static graphMaximumLanes = 16;
380
+ static changesId = "0".repeat(40);
381
+ static historyLoading = "Reading the history\u2026";
382
+ static historyEmpty = "No commits yet.";
383
+ static historyFailed = "The history couldn't be read.";
384
+ static shortIdLength = 7;
385
+ static objectIdPattern = /^(?:[0-9a-f]{40}|[0-9a-f]{64})$/u;
386
+ static mergedNamePattern = /^Merge (?:remote-tracking branch|branch|tag) '([^']+)'/u;
387
+ static formatCommitNotLoaded(id) {
388
+ return `Commit ${id.slice(0, Resources.shortIdLength)} isn't among the history's loaded commits.`;
389
+ }
390
+ static historyTitleFallback = "History";
391
+ static historyListLabel = "Commits";
392
+ static arrowDownKey = "ArrowDown";
393
+ static arrowUpKey = "ArrowUp";
394
+ static localBranchIcon = "computer";
395
+ static remoteBranchIcon = "cloud";
396
+ static tagIcon = "sell";
397
+ static detachedHeadIcon = "adjust";
398
+ static headRevision = "HEAD";
399
+ static listSeparator = ", ";
400
+ static rowChipLimit = 2;
401
+ static historyOneChipRem = 44;
402
+ static dateLocale = "en-US";
403
+ static ageNow = "now";
404
+ static ageYesterday = "Yesterday";
405
+ static avatarColors = ["default", "teal", "amber", "violet", "green", "pink", "cyan", "orange"];
406
+ static columnRefs = "Branch or tag";
407
+ static columnGraph = "Graph";
408
+ static columnMessage = "Message";
409
+ static columnAuthor = "Author";
410
+ static columnDate = "Date";
411
+ static historyToolbars = [
412
+ new GitHistoryToolbar("Undo", [GitHistoryAction.UndoCommit]),
413
+ new GitHistoryToolbar("Sync", [GitHistoryAction.Fetch, GitHistoryAction.Pull, GitHistoryAction.Push]),
414
+ new GitHistoryToolbar("Branch", [GitHistoryAction.Branch, GitHistoryAction.Stash]),
415
+ new GitHistoryToolbar("Terminal", [GitHistoryAction.Terminal])
416
+ ];
417
+ static historyActionLabels = {
418
+ [GitHistoryAction.UndoCommit]: "Undo commit",
419
+ [GitHistoryAction.Redo]: "Redo",
420
+ [GitHistoryAction.Fetch]: "Fetch",
421
+ [GitHistoryAction.Pull]: "Pull",
422
+ [GitHistoryAction.Push]: "Push",
423
+ [GitHistoryAction.Branch]: "Branch",
424
+ [GitHistoryAction.Stash]: "Stash",
425
+ [GitHistoryAction.Terminal]: "Terminal"
426
+ };
427
+ static historyActionIcons = {
428
+ [GitHistoryAction.UndoCommit]: "undo",
429
+ [GitHistoryAction.Redo]: "redo",
430
+ [GitHistoryAction.Fetch]: "download",
431
+ [GitHistoryAction.Pull]: "arrow_downward",
432
+ [GitHistoryAction.Push]: "arrow_upward",
433
+ [GitHistoryAction.Branch]: "call_split",
434
+ [GitHistoryAction.Stash]: "inventory_2",
435
+ [GitHistoryAction.Terminal]: "terminal"
436
+ };
437
+ static labeledHistoryActions = Object.values(GitHistoryAction).filter(t => t !== GitHistoryAction.Redo);
438
+ static historyLabelsRem = 60;
439
+ static historyToolbarGapRem = 0.25;
440
+ static historyMoreRem = 2.75;
441
+ static filterPlaceholder = "Filter: author, path, message";
442
+ static notBuiltYet = "Not built yet";
443
+ static toolbarLabel = "History actions";
444
+ static repositoryViewName = "git.repository";
445
+ static repositoryViewTitle = "Repository";
446
+ static repositoryViewIcon = "folder";
447
+ static repositoryViewDefaultGroup = 0;
448
+ static repositoryViewDefaultOrder = 10;
449
+ static workspacesViewName = "git.workspaces";
450
+ static workspacesViewDefaultGroup = 0;
451
+ static workspacesViewDefaultOrder = 20;
452
+ static repositoryLabel = "Repository";
453
+ static fetchAllLabel = "Fetch all";
454
+ static fetchAllRemotesTitle = "Fetch all: every remote of this repository";
455
+ static changesLabel = "Changes";
456
+ static historyLabel = "History";
457
+ static readingBranches = "Reading the branches";
458
+ static readingRepository = "Reading the repository";
459
+ static branchesLabel = "Branches";
460
+ static newBranchLabel = "New branch";
461
+ static remotesLabel = "Remotes";
462
+ static agentsLabel = "Agents";
463
+ static agentIcon = "smart_toy";
464
+ static agentsEmpty = "No agents work in this repository";
465
+ static agentStateIcons = {
466
+ [GitAgentState.Working]: "progress_activity",
467
+ [GitAgentState.WaitingForYou]: "pan_tool",
468
+ [GitAgentState.Done]: "check_circle",
469
+ [GitAgentState.Failed]: "error"
470
+ };
471
+ static agentStateLabels = {
472
+ [GitAgentState.Working]: "Working",
473
+ [GitAgentState.WaitingForYou]: "Waiting for you",
474
+ [GitAgentState.Done]: "Done",
475
+ [GitAgentState.Failed]: "Failed"
476
+ };
477
+ static pullRequestsLabel = "Pull requests";
478
+ static shownPullRequests = 20;
479
+ static pullRequestsReading = "Reading pull requests…";
480
+ static goToLine = "Go to line";
481
+ static commentsTitle = "Comments";
482
+ static noComments = "No comments yet.";
483
+ static unfoldIcon = "unfold_more";
484
+ static threadData = "thread";
485
+ static replyLabel = "Reply to this thread";
486
+ static replyPlaceholder = "Write a reply in Markdown";
487
+ static replyAction = "Reply";
488
+ static threadIcon = "forum";
489
+ static resolveThread = "Resolve";
490
+ static reactivateThread = "Reactivate";
491
+ static autoCompleteResolveConfirm = "This is the last open thread of a pull request that completes by itself, so resolving it may merge it at once.";
492
+ static resolveAnyway = "Resolve anyway";
493
+ static cancelAction = "Cancel";
494
+ static commentDateFormat = { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" };
495
+ static openThreadStates = [ThreadStatus.Active, ThreadStatus.Pending];
496
+ static doneThreadStates = [ThreadStatus.Resolved, ThreadStatus.WontFix, ThreadStatus.ByDesign, ThreadStatus.Closed];
497
+ static threadLabels = {
498
+ [ThreadStatus.Active]: "Active",
499
+ [ThreadStatus.Pending]: "Pending",
500
+ [ThreadStatus.Resolved]: "Resolved",
501
+ [ThreadStatus.WontFix]: "Won't fix",
502
+ [ThreadStatus.ByDesign]: "By design",
503
+ [ThreadStatus.Closed]: "Closed",
504
+ [ThreadStatus.None]: ""
505
+ };
506
+ static pullRequestsEmpty = "No open pull requests";
507
+ static pullRequestsSignIn = "Sign in to see pull requests";
508
+ static tryAgainLabel = "Try again";
509
+ static pullRequestsDraft = "Draft";
510
+ static pullRequestsRunning = "checks running";
511
+ static openSettingsCommand = "desktop.openSettings";
512
+ static settingsPageArgument = "page";
513
+ static newTerminalCommand = "terminal.new";
514
+ static terminalFolderArgument = "folder";
515
+ static tagsLabel = "Tags";
516
+ static stashesLabel = "Stashes";
517
+ static worktreesLabel = "Worktrees";
518
+ static submodulesLabel = "Submodules";
519
+ static folderIcon = "folder";
520
+ static syncIcon = "sync";
521
+ static changesIcon = "edit_note";
522
+ static sectionOpenIcon = "keyboard_arrow_down";
523
+ static sectionClosedIcon = "chevron_right";
524
+ static remoteIcon = "cloud";
525
+ static rowInsetRem = 0.5;
526
+ static localTreeKey = "refs/heads/";
527
+ static treeStepRem = 1.375;
528
+ static worktreeIcon = "account_tree";
529
+ static stashIcon = "inventory_2";
530
+ static submoduleIcon = "folder_special";
531
+ static repositoryLoading = "Reading the repository…";
532
+ static switchingLabel = "Switching";
533
+ static switchingIcon = "progress_activity";
534
+ static suggestLabel = "Suggest";
535
+ static suggestIcon = "stars_2";
536
+ static amendLabel = "Amend the last commit";
537
+ static amendCommitLabel = "Amend commit";
538
+ static amendTitle = "Replace the last commit with its changes and the staged ones, under this message";
539
+ static amendPushedTitle = "The last commit is already pushed, or there is none, so it can't be amended";
540
+ static commitAndPushLabel = "Commit and push";
541
+ static formatOnBranch(branch) {
542
+ return `on ${branch}`;
543
+ }
544
+ static statusBarItemName = "git.branch";
545
+ static statusBarBranchIcon = "call_split";
546
+ static fetchedItemName = "git.fetched";
547
+ static commandItemName = "git.lastCommand";
548
+ static commandLogViewName = "git.commands";
549
+ static commandLogDefaultGroup = 0;
550
+ static commandLogDefaultOrder = 20;
551
+ static openCommandLogCommand = "git.openCommandLog";
552
+ static openCommandLogTitle = "Open the command log";
553
+ static commandLogIcon = "receipt_long";
554
+ static openConflictsCommand = "git.openConflicts";
555
+ static openConflictsTitle = "Open conflicts";
556
+ static commandLogLabel = "Command log";
557
+ static commandLogHint = "The git commands your writes in this repository ran since the app started, newest first.";
558
+ static commandLogEmpty = "No git commands yet: each write you make here shows its command as it runs.";
559
+ static commandDoneIcon = "check_circle";
560
+ static commandFailedIcon = "error";
561
+ static commandStoppedIcon = "do_not_disturb_on";
562
+ static commandItemLength = 60;
563
+ static formatCommandLogWatchFailed(folder, reason) {
564
+ return `The command log of ${folder} doesn't follow new commands, since the folder couldn't be watched: ${reason}`;
565
+ }
566
+ static formatCommandLogUnwatchFailed(folder, reason) {
567
+ return `The command log couldn't stop watching ${folder}: ${reason}`;
568
+ }
569
+ static formatCommandLogTitle(folder) {
570
+ return `${Resources.commandLogLabel}: ${Resources.formatHistoryTitle(folder)}`;
571
+ }
572
+ static formatCommandExit(exitCode) {
573
+ return Object.isNull(exitCode) ? "Didn't finish" : exitCode === 0 ? "Done" : `Exit code ${exitCode}`;
574
+ }
575
+ static formatCommandDuration(milliseconds) {
576
+ return milliseconds < 1000 ? `${milliseconds} ms` : `${(milliseconds / 1000).toFixed(1)} s`;
577
+ }
578
+ static formatCommandItem(line) {
579
+ return line.length > Resources.commandItemLength ? `${line.slice(0, Resources.commandItemLength - 1)}…` : line;
580
+ }
581
+ static formatCommandItemTooltip(line, exitCode, milliseconds) {
582
+ return `${line}\n${Resources.formatCommandExit(exitCode)} in ${Resources.formatCommandDuration(milliseconds)}. Open the command log`;
583
+ }
584
+ static formatFetched(minutes) {
585
+ const hours = Math.floor(minutes / 60);
586
+ const days = Math.floor(hours / 24);
587
+ if (minutes < 1)
588
+ return "Fetched just now";
589
+ if (hours < 1)
590
+ return minutes === 1 ? "Fetched 1 minute ago" : `Fetched ${minutes} minutes ago`;
591
+ if (days < 1)
592
+ return hours === 1 ? "Fetched 1 hour ago" : `Fetched ${hours} hours ago`;
593
+ return days === 1 ? "Fetched 1 day ago" : `Fetched ${days} days ago`;
594
+ }
595
+ static formatFetchedTooltip(time) {
596
+ return `Last fetched ${time}`;
597
+ }
598
+ static formatDetachedAt(shortId) {
599
+ return `Detached at ${shortId}`;
600
+ }
601
+ static formatStatusBarTooltip(name, upstream, ahead, behind) {
602
+ const tracking = Object.isNull(upstream) ? "no upstream" : `${ahead} ahead of and ${behind} behind ${upstream}`;
603
+ return `${name}, ${tracking}. Open the history`;
604
+ }
605
+ static aheadArrow = "↑";
606
+ static behindArrow = "↓";
607
+ static formatAhead(ahead) {
608
+ return `${Resources.aheadArrow}${ahead}`;
609
+ }
610
+ static formatAheadTitle(ahead) {
611
+ return `${ahead} ${ahead === 1 ? "commit" : "commits"} to push`;
612
+ }
613
+ static formatBehindTitle(behind) {
614
+ return `${behind} ${behind === 1 ? "commit" : "commits"} to pull`;
615
+ }
616
+ static formatRemoteAheadTitle(ahead) {
617
+ return `${ahead} ${ahead === 1 ? "commit" : "commits"} your branch doesn't have`;
618
+ }
619
+ static formatRemoteBehindTitle(behind) {
620
+ return `${behind} ${behind === 1 ? "commit" : "commits"} on your branch it doesn't have`;
621
+ }
622
+ static formatBehind(behind) {
623
+ return `${Resources.behindArrow}${behind}`;
624
+ }
625
+ static formatHistoryTitle(folder) {
626
+ const name = folder.replace(/[\\/]+$/u, "").replace(/^.*[\\/]/u, "");
627
+ return name.length === 0 ? Resources.historyTitleFallback : name;
628
+ }
629
+ static formatAgeMinutes(minutes) {
630
+ return `${minutes} min ago`;
631
+ }
632
+ static formatAgeHours(hours) {
633
+ return `${hours} h ago`;
634
+ }
635
+ static formatChangedFiles(count) {
636
+ return count === 1 ? "1 changed file" : `${count} changed files`;
637
+ }
638
+ static commitIdLength = 12;
639
+ static copyIdLabel = "Copy commit id";
640
+ static copyIcon = "content_copy";
641
+ static moreActionsLabel = "More actions";
642
+ static moreIcon = "more_horiz";
643
+ static createBranchHereLabel = "Create branch here";
644
+ static createTagHereLabel = "Create tag here";
645
+ static branchMenuIcon = "call_split";
646
+ static parentLabel = "Parent";
647
+ static inLabel = "· In";
648
+ static formatShowParent(id) {
649
+ return `Show ${id} in the history`;
650
+ }
651
+ static noParent = "None: the first commit";
652
+ static cherryPickLabel = "Cherry-pick";
653
+ static cherryPickIcon = "copy_all";
654
+ static revertLabel = "Revert";
655
+ static predictedPathsShown = 3;
656
+ static revertIcon = "undo";
657
+ static branchHereLabel = "Branch here";
658
+ static explainLabel = "Explain";
659
+ static explainIcon = "stars_2";
660
+ static fileLayoutLabel = "Show files as";
661
+ static fileLayoutLabels = {
662
+ [GitFileLayout.Tree]: "Tree",
663
+ [GitFileLayout.Folders]: "Folders",
664
+ [GitFileLayout.List]: "List"
665
+ };
666
+ static fileLayoutIcons = {
667
+ [GitFileLayout.Tree]: "account_tree",
668
+ [GitFileLayout.Folders]: "folder_open",
669
+ [GitFileLayout.List]: "list"
670
+ };
671
+ static fileLayouts = [GitFileLayout.Tree, GitFileLayout.Folders, GitFileLayout.List];
672
+ static rowStartRem = 0.25;
673
+ static commitFileStepRem = 1.5;
674
+ static groupFileStepRem = 1.375;
675
+ static commitFilesLoading = "Reading the commit's files…";
676
+ static commitFilesCut = "Git listed only part of this commit's files.";
677
+ static removedSign = "−";
678
+ static emptyTreeSha1 = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
679
+ static emptyTreeSha256 = "6ef19b41225c5369f1c104d45d8d85efa9b057b53b14b4b9b939dd74decc5321";
680
+ static changeLetters = {
681
+ Added: "A", Modified: "M", Deleted: "D", Renamed: "R", Copied: "C", TypeChanged: "T", Conflict: "U"
682
+ };
683
+ static messageCut = " …";
684
+ static branchHereTitle = "Make a branch at this commit without switching to it";
685
+ static branchNameLabel = "New branch name";
686
+ static createLabel = "Create";
687
+ static cancelLabel = "Cancel";
688
+ static tagHereLabel = "Tag";
689
+ static tagHereTitle = "Make a tag at this commit";
690
+ static tagNameLabel = "New tag name";
691
+ static switchLabel = "Switch to branch";
692
+ static switchIcon = "swap_horiz";
693
+ static openInBrowserLabel = "Open in browser";
694
+ static copyLinkLabel = "Copy link";
695
+ static copyLinkIcon = "link";
696
+ static renameLabel = "Rename…";
697
+ static renameIcon = "edit";
698
+ static deleteLabel = "Delete";
699
+ static deleteIcon = "delete";
700
+ static cherryPickTitle = "Apply this commit's change onto the current branch as a new commit";
701
+ static revertTitle = "Make a new commit on the current branch that undoes this commit's change";
702
+ static authoredFormat = { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit", hourCycle: "h23" };
703
+ static formatFilesChanged(count) {
704
+ return count === 1 ? "1 file changed" : `${count} files changed`;
705
+ }
706
+ static formatSimilarity(letter, similarity) {
707
+ return `${letter} ${similarity}%`;
708
+ }
709
+ static formatMovedFrom(path) {
710
+ return ` from ${path}`;
711
+ }
712
+ static peopleSeparator = " · ";
713
+ static signatureIcons = { Verified: "verified", Unverified: "gpp_maybe", None: "remove_moderator" };
714
+ static formatSignature(state, signer) {
715
+ const by = Object.isNull(signer) ? "" : ` by ${signer}`;
716
+ return state === SignatureState.Verified ? `Signed${by}, verified against the keys you trust` : `Signed${by}, but the signature isn't verified`;
717
+ }
718
+ static commitPullRequestIcon = "alt_route";
719
+ static commitCommentsIcon = "forum";
720
+ static formatCommitComments(count, isCapped) {
721
+ const shown = `${count}${isCapped ? "+" : ""}`;
722
+ return count === 1 && !isCapped ? "1 review comment on this commit" : `${shown} review comments on this commit`;
723
+ }
724
+ static commitPullRequestStates = {
725
+ [GitPullRequestState.Open]: "Open",
726
+ [GitPullRequestState.Draft]: "Draft",
727
+ [GitPullRequestState.Merged]: "Merged",
728
+ [GitPullRequestState.Closed]: "Closed"
729
+ };
730
+ static formatCommitPullRequestNote(approvals, passed, failing, pending) {
731
+ const total = passed + failing + pending;
732
+ const parts = approvals === 0 ? [] : [approvals === 1 ? "1 approval" : `${approvals} approvals`];
733
+ if (failing > 0)
734
+ parts.push(`${failing} of ${total} checks failed`);
735
+ else if (pending > 0)
736
+ parts.push(`${pending} of ${total} checks running`);
737
+ else if (passed > 0)
738
+ parts.push(`${passed} of ${total} checks passed`);
739
+ return parts.join(Resources.peopleSeparator);
740
+ }
741
+ static formatCommitted(committer, date) {
742
+ return `committed by ${committer} ${date}`;
743
+ }
744
+ static formatAuthored(date) {
745
+ return `authored ${date}`;
746
+ }
747
+ static formatCommitLabel(shortId) {
748
+ return `Commit ${shortId}`;
749
+ }
750
+ static conflictsDocumentName = "git.conflicts";
751
+ static conflictsTitle = "Conflicts";
752
+ static conflictFilesLabel = "Files in the operation";
753
+ static conflictIcon = "warning";
754
+ static resolvedTitle = "Resolved";
755
+ static resolvedIcon = "check_circle";
756
+ static mergedCleanlyTitle = "Merged cleanly";
757
+ static cleanFileIcon = "description";
758
+ static commitDetailLabel = "Commit";
759
+ static commitDetailViewName = "git.commitView";
760
+ static commitDetailViewInstance = "selected";
761
+ static commitDetailIcon = "commit";
762
+ static commitDetailDefaultGroup = 0;
763
+ static commitDetailDefaultOrder = 45;
764
+ static commitDetailEmpty = "Choose a commit in History to see it here";
765
+ static conflictDetailLabel = "Conflict";
766
+ static conflictDetailViewName = "git.conflictDetail";
767
+ static conflictDetailViewInstance = "selected";
768
+ static conflictDetailDefaultGroup = 0;
769
+ static conflictDetailDefaultOrder = 50;
770
+ static conflictDetailEmpty = "Open the conflicts of a merge or rebase to see the conflict here.";
771
+ static rebasePreviewLabel = "Rebase preview";
772
+ static rebasePreviewViewName = "git.rebasePreview";
773
+ static rebasePreviewViewInstance = "selected";
774
+ static rebasePreviewIcon = "low_priority";
775
+ static rebasePreviewDefaultGroup = 0;
776
+ static rebasePreviewDefaultOrder = 60;
777
+ static rebasePreviewEmpty = "Open an interactive rebase to preview it.";
778
+ static workspaceAcrossViewName = "git.workspaceAcross";
779
+ static workspaceAcrossViewInstance = "selected";
780
+ static workspaceAcrossIcon = "hub";
781
+ static workspaceAcrossDefaultGroup = 0;
782
+ static workspaceAcrossDefaultOrder = 70;
783
+ static workspaceAcrossEmpty = "Open a workspace to see its repositories together here.";
784
+ static beforeCommitTitle = "Before you commit";
785
+ static baseTitle = "Base";
786
+ static noBaseNote = "No base: both sides added this text.";
787
+ static noMarkersLeft = "No conflict markers left in resolved files";
788
+ static rerereNote = "Resolutions are remembered (rerere), so the same conflict resolves itself the next time it comes up.";
789
+ static shownCleanFiles = 2;
790
+ static oursLabel = "Ours";
791
+ static theirsLabel = "Theirs";
792
+ static takeOursLabel = "Take all ours";
793
+ static takeTheirsLabel = "Take all theirs";
794
+ static deleteFileLabel = "Delete the file";
795
+ static resultLabel = "Result";
796
+ static resultIcon = "edit";
797
+ static showBaseLabel = "Show base";
798
+ static baseIcon = "history";
799
+ static baseNote = "where both sides started";
800
+ static previousConflictLabel = "Previous";
801
+ static previousConflictIcon = "arrow_upward";
802
+ static nextConflictLabel = "Next conflict";
803
+ static nextConflictIcon = "arrow_downward";
804
+ static markResolvedLabel = "Mark resolved";
805
+ static deletedOnThisSide = "This side deleted the file.";
806
+ static reusedNote = "Git reused a recorded resolution of this conflict. Check it before you keep it.";
807
+ static binaryNote = "This file is binary: keep one side's whole file.";
808
+ static noOperation = "No merge, rebase, cherry-pick or revert is in progress.";
809
+ static otherFolderNote = "Open this folder in the Git panel to resolve its conflicts.";
810
+ static abortOperationIcon = "close";
811
+ static continueOperationIcon = "check";
812
+ static abortLabels = {
813
+ Merge: "Abort merge", Rebase: "Abort rebase", CherryPick: "Abort cherry-pick", Revert: "Abort revert"
814
+ };
815
+ static operationNouns = {
816
+ Merge: "merge", Rebase: "rebase step", CherryPick: "cherry-pick", Revert: "revert"
817
+ };
818
+ static commitOperationLabels = {
819
+ Merge: "Commit the merge", Rebase: "Commit the rebase step", CherryPick: "Commit the cherry-pick", Revert: "Commit the revert"
820
+ };
821
+ static continueLabels = {
822
+ Merge: "Commit the merge", Rebase: "Continue the rebase", CherryPick: "Commit the cherry-pick", Revert: "Commit the revert"
823
+ };
824
+ static resolutionNotes = { Ours: "ours", Theirs: "theirs", Both: "both", Edited: "edited", Deleted: "deleted" };
825
+ static formatConflictTitle(conflict, conflicts) {
826
+ return `Conflict ${conflict} of ${conflicts}`;
827
+ }
828
+ static formatConflictLines(first, last) {
829
+ return first === last ? `line ${first}` : `lines ${first} to ${last}`;
830
+ }
831
+ static formatMarkersLeft(paths) {
832
+ const names = paths.length === 1 ? paths.join("") : `${paths.slice(0, -1).join(", ")} and ${paths.slice(-1).join("")}`;
833
+ return `Conflict markers left in ${names}`;
834
+ }
835
+ static formatMarkerCheckFailed(message) {
836
+ return `The check for conflict markers failed: ${message}`;
837
+ }
838
+ static formatConflictProgress(resolved, conflicts) {
839
+ return `${resolved} of ${conflicts}`;
840
+ }
841
+ static formatSideCommit(label, commit) {
842
+ const shortId = commit?.slice(0, Resources.shortIdLength) ?? label;
843
+ return label.endsWith(shortId) ? null : ` · ${shortId}`;
844
+ }
845
+ static formatResultNote(resolved) {
846
+ return ["editable", ...(resolved.length === 0 ? [] : [resolved.map((t, i) => `conflict ${i + 1} ${t ? "resolved" : "open"}`).join(", ")])].join(" · ");
847
+ }
848
+ static formatMoreCleanFiles(count) {
849
+ return `${count} more`;
850
+ }
851
+ static formatResolvedCount(resolved, files) {
852
+ return `${resolved} of ${files} ${files === 1 ? "file" : "files"} resolved`;
853
+ }
854
+ static formatMorePaths(count) {
855
+ return `+${count} more`;
856
+ }
857
+ static formatPrediction(action, prediction) {
858
+ switch (prediction?.outcome) {
859
+ case PredictionOutcome.UpToDate:
860
+ return `${action}: already on this branch.`;
861
+ case PredictionOutcome.FastForward:
862
+ case PredictionOutcome.Clean:
863
+ return `${action} applies cleanly.`;
864
+ case PredictionOutcome.Conflicts:
865
+ return `${action} would conflict in ${Resources.formatCount(prediction.paths.length)} ${prediction.paths.length === 1 ? "file" : "files"}`;
866
+ default:
867
+ return null;
868
+ }
869
+ }
870
+ static formatConflictsTitle(folder) {
871
+ return `${Resources.conflictsTitle}: ${Resources.formatHistoryTitle(folder)}`;
872
+ }
873
+ static recentActionsLabel = "Recent actions";
874
+ static noRecentActions = "No actions yet";
875
+ static forcePushOfferLabel = "Force push\u2026";
876
+ static forcePushTitle = "Force push with lease?";
877
+ static forcePushLabel = "Force push";
878
+ static switchMergeTitle = "Switch and merge?";
879
+ static switchMergeLabel = "Switch and merge";
880
+ static recentActionNames = {
881
+ "git.stage": "Stage", "git.unstage": "Unstage", "git.discard": "Discard", "git.createBranch": "Create a branch", "git.switchBranch": "Switch branch",
882
+ "git.commit": "Commit", "git.amend": "Amend the last commit", "git.push": "Push", "git.pull": "Pull", "git.cherryPick": "Cherry-pick", "git.revert": "Revert",
883
+ "git.createBranchAt": "Create a branch at a commit", "git.renameBranch": "Rename a branch", "git.deleteBranch": "Delete a branch", "git.createTag": "Tag",
884
+ "git.deleteTag": "Delete a tag", "git.stageLines": "Stage lines", "git.unstageLines": "Unstage lines", "git.undo": "Undo", "git.reset": "Reset",
885
+ "git.undoCommit": "Undo the last commit", "git.forcePush": "Force push", "git.resolveConflict": "Resolve a conflict", "git.continueOperation": "Continue",
886
+ "git.abortOperation": "Abort", "git.merge": "Merge", "git.stash": "Stash", "git.fetch": "Fetch", "git.rebase": "Rebase"
887
+ };
888
+ static fetchOfferLabel = "Fetch";
889
+ static formatForcePushText(branch, upstream, shortId) {
890
+ return `This replaces the commits ${upstream} has that ${branch} doesn't with ${branch}'s, only while ${upstream} still points at ${shortId}, `
891
+ + `as the last fetch saw it. If anyone pushed since, the remote refuses it and nothing changes.`;
892
+ }
893
+ static formatRecentAction(method, branch) {
894
+ const name = Resources.recentActionNames[method] ?? method;
895
+ return Object.isNull(branch) ? name : `${name} on ${branch}`;
896
+ }
897
+ static rebaseDocumentName = "git.interactiveRebase";
898
+ static squashPrefix = "squash! ";
899
+ static messageLineEnd = "\n";
900
+ static headLabel = "HEAD";
901
+ static rebaseNoTarget = "Open a commit's detail and choose Rebase onto here to start a rebase.";
902
+ static dragType = "text/plain";
903
+ static blankDragImage = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
904
+ static checkingIcon = "progress_activity";
905
+ static okTone = "ok";
906
+ static warningTone = "warning";
907
+ static mutedTone = "muted";
908
+ static warningIcon = "warning";
909
+ static rebaseTitle = "Rebase";
910
+ static rebaseIcon = "low_priority";
911
+ static dropRebaseIcon = "low_priority";
912
+ static dropRequestIcon = "alt_route";
913
+ static dropCleanIcon = "check_circle";
914
+ static dropCheckingIcon = "progress_activity";
915
+ static dropChecking = "Checking for conflicts…";
916
+ static dropClean = "No conflicts predicted";
917
+ static dropUpToDate = "Already merged";
918
+ static formatDropTitle(source, target) {
919
+ return `Drop ${source} on ${target}`;
920
+ }
921
+ static formatDropConflicts(paths) {
922
+ return `Conflicts predicted in ${Resources.formatCount(paths.length)} ${paths.length === 1 ? "file" : "files"}: ${paths.slice(0, Resources.predictedPathsShown).join(", ")}${paths.length > Resources.predictedPathsShown ? ` and ${Resources.formatCount(paths.length - Resources.predictedPathsShown)} more` : ""}`;
923
+ }
924
+ static formatDropChecked(canMerge, source, target) {
925
+ return `Checked against ${canMerge ? target : source} without touching your files.`;
926
+ }
927
+ static dropSameCommit = "Both point at the same commit.";
928
+ static formatDropUnpredicted(source, target) {
929
+ return `Switch to ${source} or ${target} to see what a merge of the two would do.`;
930
+ }
931
+ static formatDropMerge(source, target) {
932
+ return `Merge ${source} into ${target}`;
933
+ }
934
+ static formatDropMergeNeedsSwitch(target) {
935
+ return `Switch to ${target} to merge into it`;
936
+ }
937
+ static formatDropSwitchMerge(source, target) {
938
+ return `Switch to ${target} and merge ${source}`;
939
+ }
940
+ static formatSwitchMergeText(source, target) {
941
+ return `Git first switches to ${target}, then merges ${source} into it. You stay on ${target} afterwards.`;
942
+ }
943
+ static formatSwitchMergeChanges(target) {
944
+ return `Commit or stash your changes first: switching to ${target} to merge would carry them along.`;
945
+ }
946
+ static formatDropRebase(source, target) {
947
+ return `Rebase ${source} onto ${target}`;
948
+ }
949
+ static formatDropRebaseNeedsSwitch(source) {
950
+ return `Switch to ${source} to rebase it`;
951
+ }
952
+ static formatDropRequest(target) {
953
+ return `Open a pull request into ${target}`;
954
+ }
955
+ static formatDropRequestNeedsHost(source, target) {
956
+ return `Push ${source} to a remote whose host opens pull requests to open one into ${target}`;
957
+ }
958
+ static mergeLabel = "Merge";
959
+ static mergeTitle = "Merge this branch into the current branch";
960
+ static rebaseHereLabel = "Rebase onto here";
961
+ static rebaseHereTitle = "Rebase the current branch onto this commit, choosing what happens to each of its commits.";
962
+ static rebaseScreenLabel = "Interactive rebase";
963
+ static rebaseHint = "Drag a row or press Alt+↑ and Alt+↓ to reorder. P, R, E, S, F and D set a row's action. Each row is checked against the commits before it, so you see a conflict before you start.";
964
+ static tidyUpLabel = "Tidy up for review";
965
+ static tidyUpIcon = "stars_2";
966
+ static actionColumn = "Action";
967
+ static commitColumn = "Commit";
968
+ static messageColumn = "Message";
969
+ static checkColumn = "Check";
970
+ static dragIcon = "drag_indicator";
971
+ static rebaseActionTitles = {
972
+ Pick: "Pick", Reword: "Reword", Edit: "Edit", Squash: "Squash", Fixup: "Fixup", Drop: "Drop"
973
+ };
974
+ static rebaseActionKeys = {
975
+ p: "Pick", r: "Reword", e: "Edit", s: "Squash", f: "Fixup", d: "Drop"
976
+ };
977
+ static rebaseMessageLabel = "New message";
978
+ static checkingLabel = "Checking…";
979
+ static appliesCleanly = "Applies cleanly";
980
+ static leftOut = "Left out";
981
+ static notChecked = "Not checked on this git";
982
+ static droppedClean = "clean";
983
+ static droppedRefused = "nothing before it to fold into";
984
+ static advicePlaces = 20;
985
+ static checkIcons = {
986
+ Clean: "check_circle", Conflicts: "warning", Folded: "merge_type", Dropped: "do_not_disturb_on", Unavailable: "help"
987
+ };
988
+ static moveStackedLabel = "Move stacked branches with it";
989
+ static foldFixupsLabel = "Fold fixup! commits into their targets";
990
+ static undoBackLabel = "Undo puts the branch back as it was, once the rebase finishes";
991
+ static undoBackTitle = "Always on: a finished rebase is in the Undo menu, which puts the branch and the stacked branches it moved back where they were. A rebase that stops on a conflict goes back with Abort rebase.";
992
+ static runTestsLabel = "Run the tests after each commit";
993
+ static runTestsNote = "stops at the first commit that fails";
994
+ static startRebaseLabel = "Start rebase";
995
+ static startIcon = "play_arrow";
996
+ static nowLabel = "Now";
997
+ static afterLabel = "After";
998
+ static movedTooLabel = "moved too";
999
+ static showConflictLabel = "Show the conflict now";
1000
+ static showConflictWaits = "Opens the conflict once the rebase stops on it";
1001
+ static foldFirstRefusal = "The first kept commit can't be squashed or fixed up, since there's nothing before it to fold into.";
1002
+ static pushedNote = "The branch has been pushed. After the rebase, Push will offer a force push with lease, which refuses if someone else pushed meanwhile.";
1003
+ static emptyRebase = "The branch has no commits past this one to rebase.";
1004
+ static formatRebaseHeading(count, branch, onto) {
1005
+ return `Rebase ${Resources.formatCount(count)} ${count === 1 ? "commit" : "commits"} of ${branch ?? "the detached HEAD"} onto ${onto}`;
1006
+ }
1007
+ static formatRebaseDocumentTitle(folder) {
1008
+ return `${Resources.rebaseTitle}: ${Resources.formatHistoryTitle(folder)}`;
1009
+ }
1010
+ static formatFoldsInto(id) {
1011
+ return `Folds into ${id}`;
1012
+ }
1013
+ static formatConflictsIn(paths) {
1014
+ return `Conflicts in ${paths.join(", ")}`;
1015
+ }
1016
+ static formatStackedFollow(names) {
1017
+ return `${names.join(", ")} ${names.length === 1 ? "follows" : "follow"}`;
1018
+ }
1019
+ static formatDroppedHere(check) {
1020
+ return `Dropped here: ${check.charAt(0).toLowerCase()}${check.slice(1)}`;
1021
+ }
1022
+ static formatDropAdvice(id, above, paths) {
1023
+ return `dropping ${id} ${Object.isNull(above) ? "to the top" : `below ${above}`} clears the conflict in ${paths.join(", ")}`;
1024
+ }
1025
+ static formatTheFold(action) {
1026
+ return `the ${action.toLowerCase()}`;
1027
+ }
1028
+ static formatWithAdvice(summary, advice) {
1029
+ return `${summary} · ${advice}`;
1030
+ }
1031
+ static formatCommitsBecome(before, after) {
1032
+ return `${before} ${before === 1 ? "commit becomes" : "commits become"} ${after}`;
1033
+ }
1034
+ static formatCommitsFrom(count, base) {
1035
+ return `${count} ${count === 1 ? "commit" : "commits"} from ${base}`;
1036
+ }
1037
+ static formatAheadOfBase(count) {
1038
+ return `${count} ${count === 1 ? "commit" : "commits"} ahead of the base`;
1039
+ }
1040
+ static formatStepStops(step) {
1041
+ return `Step ${step} will stop on a conflict`;
1042
+ }
1043
+ static formatStepStopsNote(paths, onto, commit) {
1044
+ return `${paths.join(", ")} changed on ${onto}. The same lines change in ${commit}. You can resolve it when the rebase stops, or move or drop this commit.`;
1045
+ }
1046
+ static formatSquashMessage(leader, folded) {
1047
+ return `${leader}\n\n${folded}`;
1048
+ }
1049
+ static workspaceDocumentName = "git.workspace";
1050
+ static openWorkspaceCommand = "git.openWorkspace";
1051
+ static openRepositoriesInstance = "open";
1052
+ static dashboardTitle = "Dashboard";
1053
+ static openDashboardTitle = "Open dashboard";
1054
+ static dashboardIcon = "dashboard";
1055
+ static workspaceIcon = "workspaces";
1056
+ static addIcon = "add";
1057
+ static fetchAllIcon = "download";
1058
+ static moveUpIcon = "arrow_upward";
1059
+ static moveDownIcon = "arrow_downward";
1060
+ static removeIcon = "close";
1061
+ static filterIcon = "filter_list";
1062
+ static workspacesHeading = "Workspaces";
1063
+ static newWorkspaceTitle = "New workspace";
1064
+ static renameWorkspaceTitle = "Rename workspace";
1065
+ static removeWorkspaceTitle = "Remove workspace";
1066
+ static workspaceNameLabel = "Workspace name";
1067
+ static fetchAllTitle = "Fetch all";
1068
+ static addRepositoryTitle = "Add repository…";
1069
+ static moveUpTitle = "Move up";
1070
+ static moveDownTitle = "Move down";
1071
+ static filterRepositoriesLabel = "Filter repositories";
1072
+ static selectRepositoryLabel = "Select";
1073
+ static repositoryColumn = "Repository";
1074
+ static branchColumn = "Branch";
1075
+ static syncColumn = "Sync";
1076
+ static changesColumn = "Changes";
1077
+ static fetchedColumn = "Fetched";
1078
+ static pullRequestColumn = "Pull request";
1079
+ static checksColumn = "Checks";
1080
+ static openColumn = "Open";
1081
+ static noPullRequest = "None";
1082
+ static pullRequestSignedOut = "Sign in";
1083
+ static pullRequestUnavailable = "Unavailable";
1084
+ static checksFailing = "Failing";
1085
+ static checksRunning = "Running";
1086
+ static checksPassing = "Passing";
1087
+ static noChecks = "None";
1088
+ static workspacePullRequestStates = {
1089
+ [GitPullRequestState.Open]: "open",
1090
+ [GitPullRequestState.Draft]: "draft",
1091
+ [GitPullRequestState.Merged]: "merged",
1092
+ [GitPullRequestState.Closed]: "closed"
1093
+ };
1094
+ static neverFetched = "Never";
1095
+ static noRepositories = "No repositories here yet.";
1096
+ static noRepositoryMatches = "No repository matches the filter.";
1097
+ static upToDate = "Up to date";
1098
+ static noUpstreamShort = "No upstream";
1099
+ static upstreamGone = "Upstream gone";
1100
+ static changesTruncated = "Changes";
1101
+ static clean = "Clean";
1102
+ static fetching = "Fetching…";
1103
+ static noCommitsYet = "No commits yet";
1104
+ static workspaceViewsHeading = "Views";
1105
+ static workspaceHostsHeading = "Hosts";
1106
+ static workspaceViews = {
1107
+ [GitWorkspaceView.Behind]: new GitWorkspaceViewLabel("sync_problem", "Behind their upstream"),
1108
+ [GitWorkspaceView.Changed]: new GitWorkspaceViewLabel("edit_note", "With uncommitted changes"),
1109
+ [GitWorkspaceView.WaitingForReview]: new GitWorkspaceViewLabel("rate_review", "Waiting for review"),
1110
+ [GitWorkspaceView.AgentsAtWork]: new GitWorkspaceViewLabel("smart_toy", "Agents at work")
1111
+ };
1112
+ static hostSignedIn = "signed in";
1113
+ static hostSignIn = "Sign in";
1114
+ static plainGitHosts = {
1115
+ [RemoteTransport.Ssh]: "Plain Git over SSH",
1116
+ [RemoteTransport.Https]: "Plain Git over HTTPS",
1117
+ [RemoteTransport.File]: "Plain Git in a folder",
1118
+ [RemoteTransport.Other]: "Plain Git"
1119
+ };
1120
+ static formatRemoteCount(count) {
1121
+ return count === 1 ? "1 remote" : `${count} remotes`;
1122
+ }
1123
+ static formatHostSettings(host) {
1124
+ return `Open ${host} in Accounts and hosts`;
1125
+ }
1126
+ static formatRepositoryCount(count, selected) {
1127
+ const repositories = count === 1 ? "1 repository" : `${count} repositories`;
1128
+ return selected === 0 ? repositories : `${repositories} · ${selected} selected`;
1129
+ }
1130
+ static formatWorkspacePullRequest(label, state, isWaitingForReview, stateLabel = null) {
1131
+ if (state === GitPullRequestState.Open && isWaitingForReview)
1132
+ return `Review ${label}`;
1133
+ return `${label} ${stateLabel?.toLowerCase() ?? Resources.workspacePullRequestStates[state]}`;
1134
+ }
1135
+ static formatRemoveRepositories(count) {
1136
+ return `Remove ${count}`;
1137
+ }
1138
+ static formatSync(ahead, behind) {
1139
+ const parts = [ahead > 0 ? Resources.formatAhead(ahead) : "", behind > 0 ? Resources.formatBehind(behind) : ""].filter(t => t.length > 0);
1140
+ return parts.length === 0 ? Resources.upToDate : parts.join(" ");
1141
+ }
1142
+ static formatChangedFileCount(files, isTruncated) {
1143
+ if (files === 0)
1144
+ return isTruncated ? Resources.changesTruncated : Resources.clean;
1145
+ return files === 1 && !isTruncated ? "1 file" : `${files}${isTruncated ? "+" : ""} files`;
1146
+ }
1147
+ static formatConflicts(conflicts) {
1148
+ return conflicts === 1 ? "1 conflict" : `${conflicts} conflicts`;
1149
+ }
1150
+ static acrossHeading = "Across repositories";
1151
+ static needsYouHeading = "Needs you";
1152
+ static agentsAtWorkHeading = "Agents at work";
1153
+ static nothingNeedsYou = "Nothing across these repositories needs you.";
1154
+ static sharedBranchIcon = "link";
1155
+ static behindIcon = "sync_problem";
1156
+ static reviewIcon = "rate_review";
1157
+ static openLabel = "Open";
1158
+ static reviewLabel = "Review";
1159
+ static pushAllLabel = "Push all";
1160
+ static ownWorktree = "own worktree";
1161
+ static pushedVerb = "Pushed";
1162
+ static pulledVerb = "Pulled";
1163
+ static bulkNoUpstream = "it has no upstream on its remote";
1164
+ static bulkBranchChanged = "its branch, upstream or remote changed since you confirmed";
1165
+ static bulkNotBehind = "it is no longer only behind its upstream";
1166
+ static stackIcon = "stacks";
1167
+ static bulkBranchNameRefused = "Git doesn't take that branch name";
1168
+ static newBranchIcon = "call_split";
1169
+ static newBranchText = "Each repository gets the branch at its current commit and switches to it:";
1170
+ static branchNameRefused = "Git doesn't take this as a branch name.";
1171
+ static countWords = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
1172
+ static formatCount(count) {
1173
+ return Resources.countWords[count - 1] ?? String(count);
1174
+ }
1175
+ static formatCountStart(count) {
1176
+ const text = Resources.formatCount(count);
1177
+ return `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
1178
+ }
1179
+ static formatNames(names) {
1180
+ return names.length < 2 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names.slice(-1).join("")}`;
1181
+ }
1182
+ static formatSharedBranchTitle(count) {
1183
+ return `One change in ${Resources.formatCount(count)} repositories`;
1184
+ }
1185
+ static formatSharedBranchText(branch, repositories) {
1186
+ return `${branch} is open in ${Resources.formatNames(repositories)}.`;
1187
+ }
1188
+ static formatOpenAll(count) {
1189
+ return `Open all ${Resources.formatCount(count)}`;
1190
+ }
1191
+ static moreReviews = "More pull requests ask for your review than the host listed.";
1192
+ static formatReviewRequest(label, repository) {
1193
+ return `Review ${label} · ${repository}`;
1194
+ }
1195
+ static formatAgentWaiting(repository, name) {
1196
+ return `Agent in ${repository} waits: ${name}`;
1197
+ }
1198
+ static formatRepositoryConflicts(repository, conflicts) {
1199
+ return `${repository}: ${Resources.formatCount(conflicts)} ${conflicts === 1 ? "conflict" : "conflicts"}`;
1200
+ }
1201
+ static formatChecksFailing(repository, branch, failing) {
1202
+ return `${repository} ${branch}: ${Resources.formatCount(failing)} ${failing === 1 ? "check" : "checks"} failing`;
1203
+ }
1204
+ static formatBehindRepositories(count) {
1205
+ return `${Resources.formatCountStart(count)} ${count === 1 ? "repository is" : "repositories are"} behind and can fast-forward`;
1206
+ }
1207
+ static formatPullCount(count) {
1208
+ return `Pull ${count}`;
1209
+ }
1210
+ static formatRun(repository, name) {
1211
+ return `${repository} · ${name}`;
1212
+ }
1213
+ static formatFetchAllNote(atOnce) {
1214
+ return `Fetch all runs ${Resources.formatCount(atOnce)} repositories at a time, in the background, and never changes a working folder.`;
1215
+ }
1216
+ static formatPushAllTitle(branch) {
1217
+ return `Push ${branch}?`;
1218
+ }
1219
+ static pushAllText = "Each push sends the branch to its upstream as the toolbar's Push does, never forced, with the repository's hooks; a failure stops only its own repository.";
1220
+ static formatPushTarget(repository, branch, upstream, remote) {
1221
+ return `${repository}: ${branch} to ${upstream}${Object.isNull(remote) ? "" : ` on ${remote}`}`;
1222
+ }
1223
+ static formatPushSkipped(repository, branch) {
1224
+ return `${repository}: skipped, since ${branch} has no upstream on its remote`;
1225
+ }
1226
+ static formatRemotePrefix(remote) {
1227
+ return `${remote}/`;
1228
+ }
1229
+ static formatBulkBranchExists(name) {
1230
+ return `it already has a branch ${name}`;
1231
+ }
1232
+ static formatBranchedVerb(name) {
1233
+ return `Created ${name} in`;
1234
+ }
1235
+ static formatPullChosen(count) {
1236
+ return `Pull ${count}`;
1237
+ }
1238
+ static formatNewBranchIn(count) {
1239
+ return `New branch in ${count}`;
1240
+ }
1241
+ static formatNewBranchTitle(count) {
1242
+ return `New branch in ${Resources.formatCount(count)} ${count === 1 ? "repository" : "repositories"}`;
1243
+ }
1244
+ static formatPullRequestLinkTitle(text, title) {
1245
+ return `${text}: ${title}`;
1246
+ }
1247
+ static formatStackedOn(text, under) {
1248
+ return `${text} · on ${under}`;
1249
+ }
1250
+ static formatStack(repository, labels) {
1251
+ return `${repository}: ${labels.join(", then ")}: merge in order, ${labels.slice(0, 1).join("")} first`;
1252
+ }
1253
+ static formatBulkDone(verb, repositories) {
1254
+ return `${verb} ${Resources.formatNames(repositories)}.`;
1255
+ }
1256
+ static formatBulkSkipped(repository, reason) {
1257
+ return `Skipped ${repository}: ${reason}.`;
1258
+ }
1259
+ static formatBulkFailed(repository, reason) {
1260
+ return `${repository} failed: ${reason}`;
1261
+ }
1262
+ static pullRequestCommitsLabel = "Commits";
1263
+ static pullRequestNoCommits = "No commits.";
1264
+ static pullRequestCommitsCapped = "Showing the latest 250.";
1265
+ static pullRequestMoreMark = "+";
1266
+ static pullRequestCommitDateFormat = { month: "short", day: "numeric" };
1267
+ static pullRequestFilesLabel = "Files";
1268
+ static pullRequestNoFiles = "No changed files.";
1269
+ static pullRequestFilesOpenHint = "Open this repository in Git to see each file's changes.";
1270
+ static pullRequestFilesFetchHint = "Fetch to see each file's changes.";
1271
+ static pullRequestFilesFetchFailed = "The fetch didn't finish. Try again to see each file's changes.";
1272
+ static pullRequestFileLetters = {
1273
+ [FileChangeKind.Added]: "A", [FileChangeKind.Modified]: "M", [FileChangeKind.Deleted]: "D", [FileChangeKind.Renamed]: "R"
1274
+ };
1275
+ static pullRequestConflictsLabel = "Conflicts";
1276
+ static pullRequestNoConflicts = "No conflicts.";
1277
+ static pullRequestConflictsCapped = "Showing the first 100.";
1278
+ static formatHostRequestFailed(host, method, reason) {
1279
+ return `The ${host} module's ${method} request failed: ${reason}`;
1280
+ }
1281
+ static formatLinkFailed(url, reason) {
1282
+ return `The Git view couldn't open ${url}: ${reason}`;
1283
+ }
1284
+ static formatHostLinkFailed(host, url, reason) {
1285
+ return `The ${host} module couldn't open ${url}: ${reason}`;
1286
+ }
1287
+ static formatPullRequestCommitsReading(host) {
1288
+ return `Reading the commits on ${host}.`;
1289
+ }
1290
+ static formatPullRequestCommitsUnanswered(host) {
1291
+ return `${host} didn't answer. Try again to read the commits.`;
1292
+ }
1293
+ static formatPullRequestFilesReading(host) {
1294
+ return `Reading the files on ${host}.`;
1295
+ }
1296
+ static formatPullRequestFilesUnanswered(host) {
1297
+ return `${host} didn't answer. Try again to read the files.`;
1298
+ }
1299
+ static formatPullRequestConflictsReading(host) {
1300
+ return `Reading the conflicts on ${host}.`;
1301
+ }
1302
+ static formatPullRequestConflictsUnanswered(host) {
1303
+ return `${host} didn't answer. Try again to read the conflicts.`;
1304
+ }
1305
+ static formatPullRequestFileMovedFrom(path) {
1306
+ return ` from ${path}`;
1307
+ }
1308
+ static formatThreadsReading(host) {
1309
+ return `Reading the comments on ${host}.`;
1310
+ }
1311
+ static formatThreadsUnanswered(host) {
1312
+ return `${host} didn't answer. Try again to read the comments.`;
1313
+ }
1314
+ static formatThreadWriteUnanswered(host) {
1315
+ return `${host} didn't answer, so nothing changed. Try again.`;
1316
+ }
1317
+ static formatOlderComments(host) {
1318
+ return `Showing the newest comments. Older ones are on ${host}.`;
1319
+ }
1320
+ static formatOpenThreads(count) {
1321
+ return count === 1 ? "1 open thread" : `${count} open threads`;
1322
+ }
1323
+ static formatCommentCount(count) {
1324
+ return count === 1 ? "1 comment" : `${count} comments`;
1325
+ }
1326
+ static formatThreadPlace(afterState, path, line) {
1327
+ const comment = afterState ? " comment" : "Comment";
1328
+ if (Object.isNull(path))
1329
+ return comment;
1330
+ const name = path.slice(path.lastIndexOf("/") + 1);
1331
+ return Object.isNull(line) ? `${comment} on ${name}` : `${comment} on ${name}, line ${line}`;
1332
+ }
1333
+ static formatPullRequestFilesCapped(count) {
1334
+ return `Showing the first ${String(count)}.`;
1335
+ }
1336
+ static formatOpenPullRequestConflict(path) {
1337
+ return `Open the conflicts in Git, at ${path}`;
1338
+ }
1339
+ static formatPullRequestCommitAge(milliseconds) {
1340
+ const minutes = Math.max(1, Math.floor(milliseconds / 60_000));
1341
+ if (minutes < 60)
1342
+ return `${minutes} min`;
1343
+ const hours = Math.floor(minutes / 60);
1344
+ if (hours < 24)
1345
+ return `${hours} h`;
1346
+ const days = Math.floor(hours / 24);
1347
+ return days <= 30 ? `${days} d` : null;
1348
+ }
209
1349
  }
210
1350
  //# sourceMappingURL=resources.js.map