git-delta 0.0.1__tar.gz → 0.23.0__tar.gz

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 (281) hide show
  1. git_delta-0.23.0/.cargo/audit.toml +4 -0
  2. git_delta-0.23.0/.gitattributes +3 -0
  3. git_delta-0.23.0/.github/ISSUE_TEMPLATE/bug.md +14 -0
  4. git_delta-0.23.0/.github/ISSUE_TEMPLATE/feature.md +10 -0
  5. git_delta-0.23.0/.github/dependabot.yml +15 -0
  6. git_delta-0.23.0/.github/workflows/audit.yml +22 -0
  7. git_delta-0.23.0/.github/workflows/cd.yml +117 -0
  8. git_delta-0.23.0/.github/workflows/ci.yml +131 -0
  9. git_delta-0.23.0/.github/workflows/manual.yml +57 -0
  10. git_delta-0.23.0/.github/workflows/pypi.yml +123 -0
  11. git_delta-0.23.0/.github/workflows/verify-release.yml +83 -0
  12. git_delta-0.23.0/.github/workflows/winget.yml +17 -0
  13. git_delta-0.23.0/.gitignore +16 -0
  14. git_delta-0.23.0/ARCHITECTURE.md +169 -0
  15. git_delta-0.23.0/CONTRIBUTING.md +54 -0
  16. git_delta-0.23.0/Cargo.lock +3622 -0
  17. git_delta-0.23.0/Cargo.toml +87 -0
  18. git_delta-0.23.0/Cross.toml +6 -0
  19. git_delta-0.23.0/Makefile +68 -0
  20. git_delta-0.23.0/PKG-INFO +379 -0
  21. git_delta-0.23.0/README.md +362 -0
  22. git_delta-0.23.0/etc/architecture/gitu.d2 +25 -0
  23. git_delta-0.23.0/etc/architecture/gitu.svg +63 -0
  24. git_delta-0.23.0/etc/bin/ansifilter +1 -0
  25. git_delta-0.23.0/etc/bin/check-show-config-options +4 -0
  26. git_delta-0.23.0/etc/bin/diagnostics +19 -0
  27. git_delta-0.23.0/etc/bin/list-options +11 -0
  28. git_delta-0.23.0/etc/ci/.gitattributes +1 -0
  29. git_delta-0.23.0/etc/ci/before_deploy.sh +176 -0
  30. git_delta-0.23.0/etc/completion/completion.bash +383 -0
  31. git_delta-0.23.0/etc/completion/completion.fish +106 -0
  32. git_delta-0.23.0/etc/completion/completion.zsh +144 -0
  33. git_delta-0.23.0/etc/difftastic-demo/README.md +13 -0
  34. git_delta-0.23.0/etc/difftastic-demo/examples/01-wrap-call-in-or-else/after/main.rs +513 -0
  35. git_delta-0.23.0/etc/difftastic-demo/examples/01-wrap-call-in-or-else/before/main.rs +511 -0
  36. git_delta-0.23.0/etc/difftastic-demo/examples/01-wrap-call-in-or-else/message +13 -0
  37. git_delta-0.23.0/etc/difftastic-demo/examples/02-reformat-import/after/format.js +508 -0
  38. git_delta-0.23.0/etc/difftastic-demo/examples/02-reformat-import/before/format.js +505 -0
  39. git_delta-0.23.0/etc/difftastic-demo/examples/02-reformat-import/message +12 -0
  40. git_delta-0.23.0/etc/difftastic-demo/examples/03-remove-html-wrapper/after/index.html +624 -0
  41. git_delta-0.23.0/etc/difftastic-demo/examples/03-remove-html-wrapper/before/index.html +626 -0
  42. git_delta-0.23.0/etc/difftastic-demo/examples/03-remove-html-wrapper/message +12 -0
  43. git_delta-0.23.0/etc/difftastic-demo/examples/04-wrap-type-in-option/after/conflicts.rs +137 -0
  44. git_delta-0.23.0/etc/difftastic-demo/examples/04-wrap-type-in-option/before/conflicts.rs +137 -0
  45. git_delta-0.23.0/etc/difftastic-demo/examples/04-wrap-type-in-option/message +9 -0
  46. git_delta-0.23.0/etc/difftastic-demo/examples/05-insert-call-in-middle/after/render.js +4 -0
  47. git_delta-0.23.0/etc/difftastic-demo/examples/05-insert-call-in-middle/before/render.js +4 -0
  48. git_delta-0.23.0/etc/difftastic-demo/examples/05-insert-call-in-middle/message +10 -0
  49. git_delta-0.23.0/etc/difftastic-demo/examples/06-change-delimiters/after/point.py +3 -0
  50. git_delta-0.23.0/etc/difftastic-demo/examples/06-change-delimiters/before/point.py +3 -0
  51. git_delta-0.23.0/etc/difftastic-demo/examples/06-change-delimiters/message +10 -0
  52. git_delta-0.23.0/etc/difftastic-demo/examples/07-wrap-block-in-if/after/load.rs +9 -0
  53. git_delta-0.23.0/etc/difftastic-demo/examples/07-wrap-block-in-if/before/load.rs +7 -0
  54. git_delta-0.23.0/etc/difftastic-demo/examples/07-wrap-block-in-if/message +10 -0
  55. git_delta-0.23.0/etc/difftastic-demo/examples/08-pretty-print-json/after/package.json +10 -0
  56. git_delta-0.23.0/etc/difftastic-demo/examples/08-pretty-print-json/before/package.json +1 -0
  57. git_delta-0.23.0/etc/difftastic-demo/examples/08-pretty-print-json/message +9 -0
  58. git_delta-0.23.0/etc/difftastic-demo/examples/09-reflow-call-with-trailing-comma/after/total.rs +8 -0
  59. git_delta-0.23.0/etc/difftastic-demo/examples/09-reflow-call-with-trailing-comma/before/total.rs +4 -0
  60. git_delta-0.23.0/etc/difftastic-demo/examples/09-reflow-call-with-trailing-comma/message +10 -0
  61. git_delta-0.23.0/etc/difftastic-demo/examples/10-add-blank-lines/after/steps.py +6 -0
  62. git_delta-0.23.0/etc/difftastic-demo/examples/10-add-blank-lines/before/steps.py +4 -0
  63. git_delta-0.23.0/etc/difftastic-demo/examples/10-add-blank-lines/message +9 -0
  64. git_delta-0.23.0/etc/difftastic-demo/examples/11-change-word-in-comment/after/parse.rs +4 -0
  65. git_delta-0.23.0/etc/difftastic-demo/examples/11-change-word-in-comment/before/parse.rs +4 -0
  66. git_delta-0.23.0/etc/difftastic-demo/examples/11-change-word-in-comment/message +14 -0
  67. git_delta-0.23.0/etc/difftastic-demo/first-message +6 -0
  68. git_delta-0.23.0/etc/difftastic-demo/make-repo +32 -0
  69. git_delta-0.23.0/etc/docker/Makefile +3 -0
  70. git_delta-0.23.0/etc/docker/README.md +1 -0
  71. git_delta-0.23.0/etc/docker/delta-ubuntu +1 -0
  72. git_delta-0.23.0/etc/docker/ubuntu.Dockerfile +14 -0
  73. git_delta-0.23.0/etc/examples/119-within-line-edits +38 -0
  74. git_delta-0.23.0/etc/examples/121-unrecognized-content-before-diff-1 +2 -0
  75. git_delta-0.23.0/etc/examples/121-unrecognized-content-before-diff-2 +2 -0
  76. git_delta-0.23.0/etc/examples/125-merge-conflict-1.diff +48 -0
  77. git_delta-0.23.0/etc/examples/125-merge-conflict-2.diff +42 -0
  78. git_delta-0.23.0/etc/examples/127-paths-with-spaces--added +18 -0
  79. git_delta-0.23.0/etc/examples/127-paths-with-spaces--renamed +22 -0
  80. git_delta-0.23.0/etc/examples/128-empty-file +15 -0
  81. git_delta-0.23.0/etc/examples/139-file-with-space-delimited-dash.diff +7 -0
  82. git_delta-0.23.0/etc/examples/140-within-line-edits +26 -0
  83. git_delta-0.23.0/etc/examples/140-within-line-edits-counter-example +28 -0
  84. git_delta-0.23.0/etc/examples/189-merge-conflict.1.diff +38 -0
  85. git_delta-0.23.0/etc/examples/189-merge-conflict.2.diff +100 -0
  86. git_delta-0.23.0/etc/examples/189-merge-conflict.3.diff +41 -0
  87. git_delta-0.23.0/etc/examples/189-merge-conflict.4.diff +16 -0
  88. git_delta-0.23.0/etc/examples/189-merge-conflict.5.diff +17 -0
  89. git_delta-0.23.0/etc/examples/205-highlight-bug-1.diff +7 -0
  90. git_delta-0.23.0/etc/examples/205-highlight-bug-2.diff +7 -0
  91. git_delta-0.23.0/etc/examples/205-highlight-bug.diff +19 -0
  92. git_delta-0.23.0/etc/examples/308-side-by-side-tabs.diff +12 -0
  93. git_delta-0.23.0/etc/examples/345-keep-plus-minus-markers.diff +85 -0
  94. git_delta-0.23.0/etc/examples/345-keep-plus-minus-markers.gitconfig +36 -0
  95. git_delta-0.23.0/etc/examples/388-whitespace_error_keep_plus_minus_marker +6 -0
  96. git_delta-0.23.0/etc/examples/55-unicode-width.diff +17 -0
  97. git_delta-0.23.0/etc/examples/56-unified-directory-diff +10 -0
  98. git_delta-0.23.0/etc/examples/60-submodule +17 -0
  99. git_delta-0.23.0/etc/examples/662-submodules +45 -0
  100. git_delta-0.23.0/etc/examples/72-color-moved-2.diff +8 -0
  101. git_delta-0.23.0/etc/examples/72-color-moved-3.diff +14 -0
  102. git_delta-0.23.0/etc/examples/72-color-moved-4.diff +8 -0
  103. git_delta-0.23.0/etc/examples/72-color-moved.diff +22 -0
  104. git_delta-0.23.0/etc/examples/802-color-moved.diff +12 -0
  105. git_delta-0.23.0/etc/examples/813-cthulhu.diff +1495 -0
  106. git_delta-0.23.0/etc/examples/822-hunk-header-within-merge-conflict.diff +545 -0
  107. git_delta-0.23.0/etc/examples/93-binary +16 -0
  108. git_delta-0.23.0/etc/examples/styles.py +4 -0
  109. git_delta-0.23.0/etc/performance/README.md +1 -0
  110. git_delta-0.23.0/etc/performance/all-benchmarks.json +26652 -0
  111. git_delta-0.23.0/etc/performance/chronologer.yaml +9 -0
  112. git_delta-0.23.0/etc/performance/data/hyperfine-output.json +3268 -0
  113. git_delta-0.23.0/etc/performance/data/hyperfine-processed-output.json +11702 -0
  114. git_delta-0.23.0/etc/performance/index.html +26720 -0
  115. git_delta-0.23.0/etc/performance/visualization.svg +1 -0
  116. git_delta-0.23.0/etc/release.Makefile +70 -0
  117. git_delta-0.23.0/etc/tui-demo/.gitignore +4 -0
  118. git_delta-0.23.0/etc/tui-demo/01-diff.tape +63 -0
  119. git_delta-0.23.0/etc/tui-demo/02-diff-commands.tape +85 -0
  120. git_delta-0.23.0/etc/tui-demo/03-log.tape +68 -0
  121. git_delta-0.23.0/etc/tui-demo/04-commit.tape +59 -0
  122. git_delta-0.23.0/etc/tui-demo/05-features.tape +75 -0
  123. git_delta-0.23.0/etc/tui-demo/README.md +74 -0
  124. git_delta-0.23.0/etc/tui-demo/_dark.tape +2 -0
  125. git_delta-0.23.0/etc/tui-demo/_light.tape +5 -0
  126. git_delta-0.23.0/etc/tui-demo/_settings.tape +12 -0
  127. git_delta-0.23.0/etc/tui-demo/dark.gitconfig +7 -0
  128. git_delta-0.23.0/etc/tui-demo/demo +489 -0
  129. git_delta-0.23.0/etc/tui-demo/demo.gitconfig +64 -0
  130. git_delta-0.23.0/etc/tui-demo/env.sh +32 -0
  131. git_delta-0.23.0/etc/tui-demo/light.gitconfig +3 -0
  132. git_delta-0.23.0/etc/tui-demo/setup +18 -0
  133. git_delta-0.23.0/etc/tui-demo/themes.gitconfig +471 -0
  134. git_delta-0.23.0/manual/.gitignore +1 -0
  135. git_delta-0.23.0/manual/Makefile +8 -0
  136. git_delta-0.23.0/manual/book.toml +9 -0
  137. git_delta-0.23.0/manual/gitconfig-highlight.js +7 -0
  138. git_delta-0.23.0/manual/src/SUMMARY.md +40 -0
  139. git_delta-0.23.0/manual/src/build-delta-from-source.md +17 -0
  140. git_delta-0.23.0/manual/src/choosing-colors-styles.md +25 -0
  141. git_delta-0.23.0/manual/src/color-moved-support.md +68 -0
  142. git_delta-0.23.0/manual/src/comparisons-with-other-tools.md +51 -0
  143. git_delta-0.23.0/manual/src/configuration.md +70 -0
  144. git_delta-0.23.0/manual/src/custom-themes.md +25 -0
  145. git_delta-0.23.0/manual/src/delta-configs-used-in-screenshots.md +25 -0
  146. git_delta-0.23.0/manual/src/diff-highlight-and-diff-so-fancy-emulation.md +11 -0
  147. git_delta-0.23.0/manual/src/environment-variables.md +55 -0
  148. git_delta-0.23.0/manual/src/features-named-groups-of-settings.md +47 -0
  149. git_delta-0.23.0/manual/src/features.md +32 -0
  150. git_delta-0.23.0/manual/src/full---help-output.md +1159 -0
  151. git_delta-0.23.0/manual/src/get-started.md +18 -0
  152. git_delta-0.23.0/manual/src/git-blame.md +7 -0
  153. git_delta-0.23.0/manual/src/grep.md +17 -0
  154. git_delta-0.23.0/manual/src/how-delta-works.md +11 -0
  155. git_delta-0.23.0/manual/src/hyperlinks.md +71 -0
  156. git_delta-0.23.0/manual/src/installation.md +101 -0
  157. git_delta-0.23.0/manual/src/introduction.md +23 -0
  158. git_delta-0.23.0/manual/src/line-numbers.md +10 -0
  159. git_delta-0.23.0/manual/src/merge-conflicts.md +15 -0
  160. git_delta-0.23.0/manual/src/navigation-keybindings-for-large-diffs.md +3 -0
  161. git_delta-0.23.0/manual/src/related-projects.md +31 -0
  162. git_delta-0.23.0/manual/src/side-by-side-view.md +72 -0
  163. git_delta-0.23.0/manual/src/supported-languages-and-themes.md +13 -0
  164. git_delta-0.23.0/manual/src/tips-and-tricks/24-bit-color-truecolor.md +12 -0
  165. git_delta-0.23.0/manual/src/tips-and-tricks/export-to-html.md +14 -0
  166. git_delta-0.23.0/manual/src/tips-and-tricks/mouse-scrolling.md +8 -0
  167. git_delta-0.23.0/manual/src/tips-and-tricks/shell-completion.md +12 -0
  168. git_delta-0.23.0/manual/src/tips-and-tricks/tips-and-tricks.md +1 -0
  169. git_delta-0.23.0/manual/src/tips-and-tricks/toggling-delta-features.md +39 -0
  170. git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-on-windows.md +3 -0
  171. git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-gnu-screen.md +19 -0
  172. git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-magit.md +5 -0
  173. git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-tmux.md +11 -0
  174. git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-vscode.md +15 -0
  175. git_delta-0.23.0/manual/src/tips-and-tricks.md +5 -0
  176. git_delta-0.23.0/manual/src/tui.md +492 -0
  177. git_delta-0.23.0/manual/src/usage.md +21 -0
  178. git_delta-0.23.0/pyproject.toml +27 -0
  179. git_delta-0.23.0/src/align.rs +446 -0
  180. git_delta-0.23.0/src/ansi/console_tests.rs +76 -0
  181. git_delta-0.23.0/src/ansi/iterator.rs +489 -0
  182. git_delta-0.23.0/src/ansi/mod.rs +476 -0
  183. git_delta-0.23.0/src/cli.rs +1578 -0
  184. git_delta-0.23.0/src/color.rs +192 -0
  185. git_delta-0.23.0/src/colors.rs +200 -0
  186. git_delta-0.23.0/src/config.rs +521 -0
  187. git_delta-0.23.0/src/delta.rs +424 -0
  188. git_delta-0.23.0/src/edits.rs +1026 -0
  189. git_delta-0.23.0/src/env.rs +129 -0
  190. git_delta-0.23.0/src/features/color_only.rs +21 -0
  191. git_delta-0.23.0/src/features/diff_highlight.rs +111 -0
  192. git_delta-0.23.0/src/features/diff_line_metadata.rs +566 -0
  193. git_delta-0.23.0/src/features/diff_so_fancy.rs +140 -0
  194. git_delta-0.23.0/src/features/difftastic.rs +66 -0
  195. git_delta-0.23.0/src/features/hyperlinks.rs +622 -0
  196. git_delta-0.23.0/src/features/keep_plus_minus_markers.rs +10 -0
  197. git_delta-0.23.0/src/features/line_numbers.rs +1097 -0
  198. git_delta-0.23.0/src/features/mod.rs +576 -0
  199. git_delta-0.23.0/src/features/navigate.rs +289 -0
  200. git_delta-0.23.0/src/features/raw.rs +84 -0
  201. git_delta-0.23.0/src/features/side_by_side.rs +985 -0
  202. git_delta-0.23.0/src/format.rs +533 -0
  203. git_delta-0.23.0/src/git_config/mod.rs +347 -0
  204. git_delta-0.23.0/src/git_config/remote.rs +291 -0
  205. git_delta-0.23.0/src/handlers/blame.rs +573 -0
  206. git_delta-0.23.0/src/handlers/commit_meta.rs +151 -0
  207. git_delta-0.23.0/src/handlers/diff_header.rs +1318 -0
  208. git_delta-0.23.0/src/handlers/diff_header_diff.rs +49 -0
  209. git_delta-0.23.0/src/handlers/diff_header_misc.rs +61 -0
  210. git_delta-0.23.0/src/handlers/diff_stat.rs +114 -0
  211. git_delta-0.23.0/src/handlers/draw.rs +353 -0
  212. git_delta-0.23.0/src/handlers/git_show_file.rs +33 -0
  213. git_delta-0.23.0/src/handlers/grep.rs +1325 -0
  214. git_delta-0.23.0/src/handlers/hunk.rs +509 -0
  215. git_delta-0.23.0/src/handlers/hunk_header.rs +788 -0
  216. git_delta-0.23.0/src/handlers/merge_conflict.rs +1557 -0
  217. git_delta-0.23.0/src/handlers/mod.rs +65 -0
  218. git_delta-0.23.0/src/handlers/ripgrep_json.rs +263 -0
  219. git_delta-0.23.0/src/handlers/submodule.rs +192 -0
  220. git_delta-0.23.0/src/main.rs +329 -0
  221. git_delta-0.23.0/src/minusplus.rs +51 -0
  222. git_delta-0.23.0/src/options/get.rs +424 -0
  223. git_delta-0.23.0/src/options/mod.rs +4 -0
  224. git_delta-0.23.0/src/options/option_value.rs +114 -0
  225. git_delta-0.23.0/src/options/set.rs +1983 -0
  226. git_delta-0.23.0/src/options/theme.rs +258 -0
  227. git_delta-0.23.0/src/paint.rs +1178 -0
  228. git_delta-0.23.0/src/parse_style.rs +595 -0
  229. git_delta-0.23.0/src/parse_styles.rs +695 -0
  230. git_delta-0.23.0/src/style.rs +501 -0
  231. git_delta-0.23.0/src/subcommands/diff.rs +162 -0
  232. git_delta-0.23.0/src/subcommands/external.rs +288 -0
  233. git_delta-0.23.0/src/subcommands/generate_completion.rs +11 -0
  234. git_delta-0.23.0/src/subcommands/gitu.rs +868 -0
  235. git_delta-0.23.0/src/subcommands/list_syntax_themes.rs +82 -0
  236. git_delta-0.23.0/src/subcommands/mod.rs +19 -0
  237. git_delta-0.23.0/src/subcommands/parse_ansi.rs +17 -0
  238. git_delta-0.23.0/src/subcommands/sample_diff.rs +93 -0
  239. git_delta-0.23.0/src/subcommands/show_colors.rs +76 -0
  240. git_delta-0.23.0/src/subcommands/show_config.rs +564 -0
  241. git_delta-0.23.0/src/subcommands/show_syntax_themes.rs +134 -0
  242. git_delta-0.23.0/src/subcommands/show_themes.rs +80 -0
  243. git_delta-0.23.0/src/tests/ansi_test_utils.rs +271 -0
  244. git_delta-0.23.0/src/tests/integration_test_utils.rs +440 -0
  245. git_delta-0.23.0/src/tests/mod.rs +18 -0
  246. git_delta-0.23.0/src/tests/test_example_diffs.rs +3385 -0
  247. git_delta-0.23.0/src/tests/test_switch_and_style_features.rs +1169 -0
  248. git_delta-0.23.0/src/tests/test_utils.rs +50 -0
  249. git_delta-0.23.0/src/utils/bat/LICENSE +26 -0
  250. git_delta-0.23.0/src/utils/bat/assets.rs +81 -0
  251. git_delta-0.23.0/src/utils/bat/dirs.rs +41 -0
  252. git_delta-0.23.0/src/utils/bat/less.rs +68 -0
  253. git_delta-0.23.0/src/utils/bat/mod.rs +5 -0
  254. git_delta-0.23.0/src/utils/bat/output.rs +256 -0
  255. git_delta-0.23.0/src/utils/bat/terminal.rs +83 -0
  256. git_delta-0.23.0/src/utils/git.rs +31 -0
  257. git_delta-0.23.0/src/utils/helpwrap.rs +348 -0
  258. git_delta-0.23.0/src/utils/mod.rs +15 -0
  259. git_delta-0.23.0/src/utils/path.rs +118 -0
  260. git_delta-0.23.0/src/utils/process.rs +1254 -0
  261. git_delta-0.23.0/src/utils/regex_replacement.rs +112 -0
  262. git_delta-0.23.0/src/utils/round_char_boundary.rs +24 -0
  263. git_delta-0.23.0/src/utils/syntect.rs +95 -0
  264. git_delta-0.23.0/src/utils/tabs.rs +64 -0
  265. git_delta-0.23.0/src/utils/workarounds.rs +60 -0
  266. git_delta-0.23.0/src/wrapping.rs +1209 -0
  267. git_delta-0.23.0/tests/test_deprecated_options +11 -0
  268. git_delta-0.23.0/tests/test_navigate_less_history_file +65 -0
  269. git_delta-0.23.0/tests/test_raw_output_matches_git_on_full_repo_history +9 -0
  270. git_delta-0.23.0/tests/tui.rs +42 -0
  271. git_delta-0.23.0/themes.gitconfig +682 -0
  272. git_delta-0.0.1/PKG-INFO +0 -14
  273. git_delta-0.0.1/README.md +0 -3
  274. git_delta-0.0.1/pyproject.toml +0 -19
  275. git_delta-0.0.1/setup.cfg +0 -4
  276. git_delta-0.0.1/src/git_delta/__init__.py +0 -0
  277. git_delta-0.0.1/src/git_delta.egg-info/PKG-INFO +0 -14
  278. git_delta-0.0.1/src/git_delta.egg-info/SOURCES.txt +0 -8
  279. git_delta-0.0.1/src/git_delta.egg-info/dependency_links.txt +0 -1
  280. git_delta-0.0.1/src/git_delta.egg-info/top_level.txt +0 -1
  281. {git_delta-0.0.1 → git_delta-0.23.0}/LICENSE +0 -0
@@ -0,0 +1,4 @@
1
+ # See https://github.com/rustsec/rustsec/blob/main/cargo-audit/audit.toml.example
2
+
3
+ [advisories]
4
+ ignore = ["RUSTSEC-2020-0159", "RUSTSEC-2020-0071"]
@@ -0,0 +1,3 @@
1
+ *.Makefile linguist-language=Makefile
2
+ etc/performance/* linguist-vendored
3
+ *.rs whitespace=tab-in-indent,trailing-space,-space-before-tab eol=lf
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: Bug
3
+ about: Create a bug report
4
+ title: "\U0001F41B "
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ - [ ] Please include the raw text output from git, so that we can reproduce the problem.
11
+ (You can use `git --no-pager` to produce the raw text output.)
12
+ - [ ] A screenshot of Delta's output is often helpful also.
13
+
14
+ Thanks for filing a Delta bug report!
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: Feature
3
+ about: Propose an improvement
4
+ title: "\U0001F680 "
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ Hi, thanks for contributing to Delta, please go ahead and describe your proposal!
@@ -0,0 +1,15 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: cargo
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
8
+ ignore:
9
+ - dependency-name: regex
10
+ versions:
11
+ - 1.4.4
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "daily"
@@ -0,0 +1,22 @@
1
+ name: Security audit
2
+
3
+ on:
4
+ schedule:
5
+ # Runs at 00:00 UTC everyday
6
+ - cron: '0 0 * * *'
7
+ push:
8
+ paths:
9
+ - '**/Cargo.toml'
10
+ - '**/Cargo.lock'
11
+ - '**/audit.toml'
12
+
13
+ jobs:
14
+ audit:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v4
19
+ - uses: actions-rs/audit-check@v1
20
+ with:
21
+ token: ${{ secrets.GITHUB_TOKEN }}
22
+
@@ -0,0 +1,117 @@
1
+ name: Continuous Deployment
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '[0-9]+.[0-9]+.[0-9]+'
7
+
8
+ jobs:
9
+ ci:
10
+ uses: ./.github/workflows/ci.yml
11
+
12
+ publish:
13
+ needs: ci
14
+ name: Publishing for ${{ matrix.job.os }}
15
+ runs-on: ${{ matrix.job.os }}
16
+ strategy:
17
+ matrix:
18
+ job:
19
+ - os: macos-latest
20
+ target: aarch64-apple-darwin
21
+ use-cross: false
22
+ - os: windows-latest
23
+ target: x86_64-pc-windows-msvc
24
+ use-cross: false
25
+ - os: ubuntu-22.04
26
+ target: x86_64-unknown-linux-gnu
27
+ use-cross: false
28
+ - os: ubuntu-latest
29
+ target: x86_64-unknown-linux-musl
30
+ use-cross: true
31
+ - os: ubuntu-22.04
32
+ target: i686-unknown-linux-gnu
33
+ use-cross: true
34
+ - os: ubuntu-22.04
35
+ target: arm-unknown-linux-gnueabihf
36
+ use-cross: true
37
+ - os: ubuntu-22.04
38
+ target: aarch64-unknown-linux-gnu
39
+ use-cross: true
40
+
41
+ steps:
42
+ - name: Installing Rust toolchain
43
+ uses: dtolnay/rust-toolchain@stable
44
+ with:
45
+ targets: ${{ matrix.job.target }}
46
+ - name: Checkout repository
47
+ uses: actions/checkout@v4
48
+ - name: Install cross
49
+ if: matrix.job.use-cross
50
+ uses: taiki-e/install-action@v2
51
+ with:
52
+ tool: cross
53
+ - name: Cargo build
54
+ env:
55
+ MACOSX_DEPLOYMENT_TARGET: 10.7
56
+ shell: bash
57
+ run: |
58
+ if [[ "${{ matrix.job.use-cross }}" == "true" ]]; then
59
+ cross build --release --target ${{ matrix.job.target }}
60
+ else
61
+ cargo build --release --target ${{ matrix.job.target }}
62
+ fi
63
+
64
+ - name: Install required dependencies
65
+ shell: bash
66
+ run: |
67
+ if [[ ${{ matrix.job.target }} == arm-unknown-linux-gnueabihf ]]; then
68
+ sudo apt update
69
+ sudo apt-get install -y binutils-arm-linux-gnueabihf
70
+ fi
71
+ if [[ ${{ matrix.job.target }} == aarch64-unknown-linux-gnu ]]; then
72
+ sudo apt update
73
+ sudo apt-get install -y binutils-aarch64-linux-gnu
74
+ fi
75
+
76
+ - name: Packaging final binary
77
+ shell: bash
78
+ env:
79
+ TARGET: ${{ matrix.job.target }}
80
+ PROJECT_NAME: delta
81
+ PACKAGE_NAME: git-delta
82
+ OS_NAME: ${{ matrix.job.os }}
83
+ run: ./etc/ci/before_deploy.sh
84
+
85
+ - name: Releasing assets
86
+ uses: softprops/action-gh-release@v2
87
+ with:
88
+ draft: true
89
+ files: |
90
+ delta-*-${{ matrix.job.target }}.*
91
+ git-delta*.deb
92
+ env:
93
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94
+
95
+ verify-release:
96
+ needs: publish
97
+ uses: ./.github/workflows/verify-release.yml
98
+ with:
99
+ version: ${{ github.ref_name }}
100
+ secrets: inherit
101
+
102
+ publish-to-pypi:
103
+ needs: ci
104
+ uses: ./.github/workflows/pypi.yml
105
+ permissions:
106
+ contents: read
107
+ id-token: write
108
+ with:
109
+ repository: pypi
110
+
111
+ publish-to-cargo:
112
+ name: Publishing to Cargo
113
+ runs-on: ubuntu-latest
114
+ steps:
115
+ - uses: actions/checkout@v4
116
+ - uses: dtolnay/rust-toolchain@stable
117
+ - run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
@@ -0,0 +1,131 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ workflow_call:
9
+
10
+ jobs:
11
+ unit_tests:
12
+ name: Unit tests
13
+ runs-on: ${{ matrix.job.os }}
14
+ strategy:
15
+ matrix:
16
+ job:
17
+ - os: macos-latest
18
+ target: aarch64-apple-darwin
19
+ use-cross: false
20
+ - os: windows-latest
21
+ target: x86_64-pc-windows-msvc
22
+ use-cross: false
23
+ - os: ubuntu-latest
24
+ target: x86_64-unknown-linux-gnu
25
+ use-cross: false
26
+ - os: ubuntu-latest
27
+ target: x86_64-unknown-linux-musl
28
+ use-cross: true
29
+ - os: ubuntu-latest
30
+ target: i686-unknown-linux-gnu
31
+ use-cross: true
32
+ - os: ubuntu-latest
33
+ target: arm-unknown-linux-gnueabihf
34
+ use-cross: true
35
+ - os: ubuntu-latest
36
+ target: aarch64-unknown-linux-gnu
37
+ use-cross: true
38
+ steps:
39
+ - name: Checkout repository
40
+ uses: actions/checkout@v4
41
+ - name: Install Rust
42
+ uses: dtolnay/rust-toolchain@stable
43
+ with:
44
+ targets: ${{ matrix.job.target }}
45
+ - name: Install cross
46
+ if: matrix.job.use-cross
47
+ uses: taiki-e/install-action@v2
48
+ with:
49
+ tool: cross
50
+ - name: Unit tests
51
+ shell: bash
52
+ run: |
53
+ if [[ "${{ matrix.job.use-cross }}" == "true" ]]; then
54
+ cross test --target ${{ matrix.job.target }} --verbose -- --nocapture
55
+ else
56
+ cargo test --target ${{ matrix.job.target }} --verbose -- --nocapture
57
+ fi
58
+
59
+ integration_tests:
60
+ name: Integration tests
61
+ runs-on: ${{ matrix.os }}
62
+ strategy:
63
+ matrix:
64
+ os: [macos-latest, ubuntu-latest]
65
+ include:
66
+ - os: macos-latest
67
+ target: aarch64-apple-darwin
68
+ - os: ubuntu-latest
69
+ target: x86_64-unknown-linux-gnu
70
+ steps:
71
+ - name: Checkout repository
72
+ uses: actions/checkout@v4
73
+ - name: Install Rust
74
+ uses: dtolnay/rust-toolchain@stable
75
+ - name: Build for release
76
+ run: cargo build --target ${{ matrix.target }} --release
77
+ - name: End to end tests
78
+ run: |
79
+ DELTA_BIN=target/${{ matrix.target }}/release/delta
80
+ ./tests/test_raw_output_matches_git_on_full_repo_history $DELTA_BIN
81
+ ./tests/test_deprecated_options $DELTA_BIN > /dev/null
82
+ - name: Run executable
83
+ run: cargo run --release --target ${{ matrix.target }} -- < /dev/null
84
+
85
+ rustfmt:
86
+ name: Rustfmt
87
+ runs-on: ubuntu-latest
88
+ steps:
89
+ - name: Checkout repository
90
+ uses: actions/checkout@v4
91
+ - name: Install Rust
92
+ uses: dtolnay/rust-toolchain@stable
93
+ with:
94
+ components: rustfmt
95
+ - name: Check formatting
96
+ run: cargo fmt --all --check
97
+
98
+ clippy:
99
+ name: Clippy
100
+ runs-on: ubuntu-latest
101
+ steps:
102
+ - name: Checkout repository
103
+ uses: actions/checkout@v4
104
+ - name: Install Rust
105
+ uses: dtolnay/rust-toolchain@stable
106
+ with:
107
+ components: clippy
108
+ - name: Clippy Check
109
+ run: cargo clippy -- -D warnings
110
+
111
+ coverage:
112
+ name: Code coverage
113
+ runs-on: ubuntu-latest
114
+ steps:
115
+ - name: Checkout repository
116
+ uses: actions/checkout@v4
117
+ - name: Install stable toolchain
118
+ uses: dtolnay/rust-toolchain@stable
119
+ - name: Install cargo-tarpaulin
120
+ uses: taiki-e/install-action@v2
121
+ with:
122
+ tool: cargo-tarpaulin
123
+ - name: Run cargo-tarpaulin
124
+ run: cargo tarpaulin --ignore-tests --out Lcov --output-dir target/tarpaulin
125
+ - name: Upload to Coveralls
126
+ # upload only if push
127
+ if: ${{ github.event_name == 'push' }}
128
+ uses: coverallsapp/github-action@master
129
+ with:
130
+ github-token: ${{ secrets.GITHUB_TOKEN }}
131
+ path-to-lcov: './target/tarpaulin/lcov.info'
@@ -0,0 +1,57 @@
1
+ name: Deploy Manual
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - "manual/**"
9
+ workflow_dispatch:
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+
14
+ jobs:
15
+ build:
16
+ permissions:
17
+ contents: read
18
+
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - uses: dtolnay/rust-toolchain@stable
23
+
24
+ - run: cargo doc --no-deps
25
+
26
+ - name: Setup mdBook
27
+ uses: taiki-e/install-action@v2
28
+ with:
29
+ tool: mdbook@0.4.14
30
+
31
+ - name: Build manual
32
+ run: mdbook build
33
+ working-directory: manual
34
+
35
+ - name: Upload artifact
36
+ uses: actions/upload-pages-artifact@v3
37
+ with:
38
+ path: manual/book
39
+
40
+ deploy:
41
+ needs: build
42
+
43
+ permissions:
44
+ pages: write
45
+ id-token: write
46
+
47
+ environment:
48
+ name: github-pages
49
+ url: ${{ steps.deployment.outputs.page_url }}
50
+
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - name: Configure GitHub Pages
54
+ uses: actions/configure-pages@v5
55
+ - name: Deploy to GitHub Pages
56
+ id: deployment
57
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,123 @@
1
+ name: PyPI
2
+
3
+ # Builds a wheel per platform, each containing the delta executable, and uploads them with an sdist.
4
+ # Both indexes use trusted publishing: PyPI trusts cd.yml (which calls this workflow) and TestPyPI
5
+ # trusts this workflow.
6
+ # cd.yml calls this with repository: pypi for release tags; run it manually to upload to TestPyPI.
7
+ # Neither index accepts a second upload of the same version, so a TestPyPI upload of a version that
8
+ # is already there fails.
9
+
10
+ on:
11
+ workflow_call:
12
+ inputs:
13
+ repository:
14
+ type: string
15
+ required: true
16
+ workflow_dispatch:
17
+ inputs:
18
+ repository:
19
+ type: choice
20
+ options: [testpypi]
21
+ default: testpypi
22
+
23
+ env:
24
+ # Build libgit2 from source rather than linking a system libgit2 found by pkg-config.
25
+ LIBGIT2_NO_PKG_CONFIG: 1
26
+
27
+ jobs:
28
+ linux:
29
+ # The manylinux2014 i686 image cannot resolve hostnames on ubuntu-26.04 (ubuntu-latest).
30
+ runs-on: ubuntu-24.04
31
+ strategy:
32
+ fail-fast: false
33
+ matrix:
34
+ include:
35
+ - { target: x86_64, manylinux: auto, test: true }
36
+ - { target: aarch64, manylinux: auto }
37
+ - { target: armv7, manylinux: auto }
38
+ - { target: i686, manylinux: auto }
39
+ - { target: x86_64, manylinux: musllinux_1_2 }
40
+ - { target: aarch64, manylinux: musllinux_1_2 }
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - uses: PyO3/maturin-action@v1
44
+ with:
45
+ target: ${{ matrix.target }}
46
+ manylinux: ${{ matrix.manylinux }}
47
+ args: --release --locked --out dist
48
+ - uses: astral-sh/setup-uv@v10.4.0
49
+ if: matrix.test
50
+ - name: Install and run the wheel
51
+ if: matrix.test
52
+ run: uvx --from dist/*.whl delta --version
53
+ - uses: actions/upload-artifact@v4
54
+ with:
55
+ name: wheels-linux-${{ matrix.target }}-${{ matrix.manylinux }}
56
+ path: dist
57
+
58
+ macos:
59
+ runs-on: macos-latest
60
+ strategy:
61
+ fail-fast: false
62
+ matrix:
63
+ target: [x86_64-apple-darwin, aarch64-apple-darwin]
64
+ steps:
65
+ - uses: actions/checkout@v4
66
+ - uses: PyO3/maturin-action@v1
67
+ with:
68
+ target: ${{ matrix.target }}
69
+ args: --release --locked --out dist
70
+ # The runner is arm64, so it can run only the aarch64 wheel.
71
+ - uses: astral-sh/setup-uv@v10.4.0
72
+ if: matrix.target == 'aarch64-apple-darwin'
73
+ - name: Install and run the wheel
74
+ if: matrix.target == 'aarch64-apple-darwin'
75
+ run: uvx --from dist/*.whl delta --version
76
+ - uses: actions/upload-artifact@v4
77
+ with:
78
+ name: wheels-${{ matrix.target }}
79
+ path: dist
80
+
81
+ windows:
82
+ runs-on: windows-latest
83
+ steps:
84
+ - uses: actions/checkout@v4
85
+ - uses: PyO3/maturin-action@v1
86
+ with:
87
+ target: x86_64-pc-windows-msvc
88
+ args: --release --locked --out dist
89
+ - uses: astral-sh/setup-uv@v10.4.0
90
+ - name: Install and run the wheel
91
+ shell: bash
92
+ run: uvx --from dist/*.whl delta --version
93
+ - uses: actions/upload-artifact@v4
94
+ with:
95
+ name: wheels-x86_64-pc-windows-msvc
96
+ path: dist
97
+
98
+ sdist:
99
+ runs-on: ubuntu-latest
100
+ steps:
101
+ - uses: actions/checkout@v4
102
+ - uses: PyO3/maturin-action@v1
103
+ with:
104
+ command: sdist
105
+ args: --out dist
106
+ - uses: actions/upload-artifact@v4
107
+ with:
108
+ name: sdist
109
+ path: dist
110
+
111
+ upload:
112
+ needs: [linux, macos, windows, sdist]
113
+ runs-on: ubuntu-latest
114
+ # Trusted publishing: the index accepts the job's OIDC token instead of an API token.
115
+ permissions:
116
+ id-token: write
117
+ steps:
118
+ - uses: actions/download-artifact@v4
119
+ with:
120
+ path: dist
121
+ merge-multiple: true
122
+ - uses: astral-sh/setup-uv@v10.4.0
123
+ - run: uv publish --trusted-publishing always --publish-url ${{ inputs.repository == 'testpypi' && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }} dist/*
@@ -0,0 +1,83 @@
1
+ name: Verify Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: "Release version to verify (e.g. 0.19.2)"
8
+ required: true
9
+ workflow_call:
10
+ inputs:
11
+ version:
12
+ required: true
13
+ type: string
14
+
15
+ jobs:
16
+ verify:
17
+ name: Verify release assets
18
+ runs-on: ubuntu-latest
19
+ env:
20
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21
+ steps:
22
+ - name: Check all expected assets exist
23
+ run: |
24
+ tag="${{ inputs.version }}"
25
+ expected=(
26
+ "delta-${tag}-aarch64-apple-darwin.tar.gz"
27
+ "delta-${tag}-aarch64-unknown-linux-gnu.tar.gz"
28
+ "delta-${tag}-arm-unknown-linux-gnueabihf.tar.gz"
29
+ "delta-${tag}-i686-unknown-linux-gnu.tar.gz"
30
+ "delta-${tag}-x86_64-pc-windows-msvc.zip"
31
+ "delta-${tag}-x86_64-unknown-linux-gnu.tar.gz"
32
+ "delta-${tag}-x86_64-unknown-linux-musl.tar.gz"
33
+ "git-delta_${tag}_amd64.deb"
34
+ "git-delta_${tag}_arm64.deb"
35
+ "git-delta_${tag}_armhf.deb"
36
+ "git-delta_${tag}_i386.deb"
37
+ "git-delta-musl_${tag}_amd64.deb"
38
+ )
39
+ actual=$(gh release view "$tag" --repo "$GITHUB_REPOSITORY" --json assets -q '.assets[].name' | sort)
40
+ missing=()
41
+ for asset in "${expected[@]}"; do
42
+ if ! echo "$actual" | grep -qxF "$asset"; then
43
+ missing+=("$asset")
44
+ fi
45
+ done
46
+ if [[ ${#missing[@]} -gt 0 ]]; then
47
+ echo "FAIL: missing release assets:"
48
+ printf ' %s\n' "${missing[@]}"
49
+ exit 1
50
+ fi
51
+ echo "All ${#expected[@]} expected assets present."
52
+
53
+ - name: Download .deb assets
54
+ run: |
55
+ mkdir -p /tmp/debs
56
+ gh release download "${{ inputs.version }}" --repo "$GITHUB_REPOSITORY" --dir /tmp/debs --pattern "git-delta*.deb"
57
+
58
+ - name: Verify .deb installability on Debian 12
59
+ run: |
60
+ docker run --rm -v /tmp/debs:/debs debian:12 bash -c "
61
+ set -e
62
+ dpkg -i /debs/git-delta_*_amd64.deb
63
+ delta --version
64
+ "
65
+
66
+ - name: Verify .deb libc6 dependencies are Debian 12 compatible
67
+ run: |
68
+ max_libc="2.36"
69
+ for deb in /tmp/debs/git-delta_*.deb; do
70
+ arch=$(dpkg-deb -f "$deb" Architecture)
71
+ depends=$(dpkg-deb -f "$deb" Depends)
72
+ echo "${arch}: ${depends}"
73
+ libc_ver=$(echo "$depends" | grep -oP 'libc6 \(>= \K[0-9.]+' || true)
74
+ if [ -z "$libc_ver" ]; then
75
+ echo " (no libc6 dependency)"
76
+ continue
77
+ fi
78
+ if [ "$(printf '%s\n%s' "$libc_ver" "$max_libc" | sort -V | tail -1)" != "$max_libc" ]; then
79
+ echo "FAIL: ${arch} requires libc6 >= ${libc_ver}, but Debian 12 has ${max_libc}"
80
+ exit 1
81
+ fi
82
+ done
83
+ echo "All .deb packages are Debian 12 compatible."
@@ -0,0 +1,17 @@
1
+ name: Publish to WinGet
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish-to-winget:
9
+ name: Publish to WinGet
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: vedantmgoyal2009/winget-releaser@v2
13
+ with:
14
+ identifier: dandavison.delta
15
+ version: ${{ github.event.release.tag_name }}
16
+ installers-regex: '-pc-windows-msvc\.zip$'
17
+ token: ${{ secrets.WINGET_TOKEN }}
@@ -0,0 +1,16 @@
1
+ .ignore
2
+ .make-sentinels
3
+ performance/all-benchmarks.json
4
+ performance/index.html
5
+ src/junk.rs
6
+ **/*.rs.bk
7
+ /target
8
+
9
+ # insta: unreviewed inline data, and separate snapshot files
10
+ *.pending-snap
11
+ **/snapshots/*.snap.new
12
+
13
+ # task automation
14
+ AGENTS.md
15
+ CLAUDE.md
16
+ .task/