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.
- git_delta-0.23.0/.cargo/audit.toml +4 -0
- git_delta-0.23.0/.gitattributes +3 -0
- git_delta-0.23.0/.github/ISSUE_TEMPLATE/bug.md +14 -0
- git_delta-0.23.0/.github/ISSUE_TEMPLATE/feature.md +10 -0
- git_delta-0.23.0/.github/dependabot.yml +15 -0
- git_delta-0.23.0/.github/workflows/audit.yml +22 -0
- git_delta-0.23.0/.github/workflows/cd.yml +117 -0
- git_delta-0.23.0/.github/workflows/ci.yml +131 -0
- git_delta-0.23.0/.github/workflows/manual.yml +57 -0
- git_delta-0.23.0/.github/workflows/pypi.yml +123 -0
- git_delta-0.23.0/.github/workflows/verify-release.yml +83 -0
- git_delta-0.23.0/.github/workflows/winget.yml +17 -0
- git_delta-0.23.0/.gitignore +16 -0
- git_delta-0.23.0/ARCHITECTURE.md +169 -0
- git_delta-0.23.0/CONTRIBUTING.md +54 -0
- git_delta-0.23.0/Cargo.lock +3622 -0
- git_delta-0.23.0/Cargo.toml +87 -0
- git_delta-0.23.0/Cross.toml +6 -0
- git_delta-0.23.0/Makefile +68 -0
- git_delta-0.23.0/PKG-INFO +379 -0
- git_delta-0.23.0/README.md +362 -0
- git_delta-0.23.0/etc/architecture/gitu.d2 +25 -0
- git_delta-0.23.0/etc/architecture/gitu.svg +63 -0
- git_delta-0.23.0/etc/bin/ansifilter +1 -0
- git_delta-0.23.0/etc/bin/check-show-config-options +4 -0
- git_delta-0.23.0/etc/bin/diagnostics +19 -0
- git_delta-0.23.0/etc/bin/list-options +11 -0
- git_delta-0.23.0/etc/ci/.gitattributes +1 -0
- git_delta-0.23.0/etc/ci/before_deploy.sh +176 -0
- git_delta-0.23.0/etc/completion/completion.bash +383 -0
- git_delta-0.23.0/etc/completion/completion.fish +106 -0
- git_delta-0.23.0/etc/completion/completion.zsh +144 -0
- git_delta-0.23.0/etc/difftastic-demo/README.md +13 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/01-wrap-call-in-or-else/after/main.rs +513 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/01-wrap-call-in-or-else/before/main.rs +511 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/01-wrap-call-in-or-else/message +13 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/02-reformat-import/after/format.js +508 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/02-reformat-import/before/format.js +505 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/02-reformat-import/message +12 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/03-remove-html-wrapper/after/index.html +624 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/03-remove-html-wrapper/before/index.html +626 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/03-remove-html-wrapper/message +12 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/04-wrap-type-in-option/after/conflicts.rs +137 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/04-wrap-type-in-option/before/conflicts.rs +137 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/04-wrap-type-in-option/message +9 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/05-insert-call-in-middle/after/render.js +4 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/05-insert-call-in-middle/before/render.js +4 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/05-insert-call-in-middle/message +10 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/06-change-delimiters/after/point.py +3 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/06-change-delimiters/before/point.py +3 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/06-change-delimiters/message +10 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/07-wrap-block-in-if/after/load.rs +9 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/07-wrap-block-in-if/before/load.rs +7 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/07-wrap-block-in-if/message +10 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/08-pretty-print-json/after/package.json +10 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/08-pretty-print-json/before/package.json +1 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/08-pretty-print-json/message +9 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/09-reflow-call-with-trailing-comma/after/total.rs +8 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/09-reflow-call-with-trailing-comma/before/total.rs +4 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/09-reflow-call-with-trailing-comma/message +10 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/10-add-blank-lines/after/steps.py +6 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/10-add-blank-lines/before/steps.py +4 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/10-add-blank-lines/message +9 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/11-change-word-in-comment/after/parse.rs +4 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/11-change-word-in-comment/before/parse.rs +4 -0
- git_delta-0.23.0/etc/difftastic-demo/examples/11-change-word-in-comment/message +14 -0
- git_delta-0.23.0/etc/difftastic-demo/first-message +6 -0
- git_delta-0.23.0/etc/difftastic-demo/make-repo +32 -0
- git_delta-0.23.0/etc/docker/Makefile +3 -0
- git_delta-0.23.0/etc/docker/README.md +1 -0
- git_delta-0.23.0/etc/docker/delta-ubuntu +1 -0
- git_delta-0.23.0/etc/docker/ubuntu.Dockerfile +14 -0
- git_delta-0.23.0/etc/examples/119-within-line-edits +38 -0
- git_delta-0.23.0/etc/examples/121-unrecognized-content-before-diff-1 +2 -0
- git_delta-0.23.0/etc/examples/121-unrecognized-content-before-diff-2 +2 -0
- git_delta-0.23.0/etc/examples/125-merge-conflict-1.diff +48 -0
- git_delta-0.23.0/etc/examples/125-merge-conflict-2.diff +42 -0
- git_delta-0.23.0/etc/examples/127-paths-with-spaces--added +18 -0
- git_delta-0.23.0/etc/examples/127-paths-with-spaces--renamed +22 -0
- git_delta-0.23.0/etc/examples/128-empty-file +15 -0
- git_delta-0.23.0/etc/examples/139-file-with-space-delimited-dash.diff +7 -0
- git_delta-0.23.0/etc/examples/140-within-line-edits +26 -0
- git_delta-0.23.0/etc/examples/140-within-line-edits-counter-example +28 -0
- git_delta-0.23.0/etc/examples/189-merge-conflict.1.diff +38 -0
- git_delta-0.23.0/etc/examples/189-merge-conflict.2.diff +100 -0
- git_delta-0.23.0/etc/examples/189-merge-conflict.3.diff +41 -0
- git_delta-0.23.0/etc/examples/189-merge-conflict.4.diff +16 -0
- git_delta-0.23.0/etc/examples/189-merge-conflict.5.diff +17 -0
- git_delta-0.23.0/etc/examples/205-highlight-bug-1.diff +7 -0
- git_delta-0.23.0/etc/examples/205-highlight-bug-2.diff +7 -0
- git_delta-0.23.0/etc/examples/205-highlight-bug.diff +19 -0
- git_delta-0.23.0/etc/examples/308-side-by-side-tabs.diff +12 -0
- git_delta-0.23.0/etc/examples/345-keep-plus-minus-markers.diff +85 -0
- git_delta-0.23.0/etc/examples/345-keep-plus-minus-markers.gitconfig +36 -0
- git_delta-0.23.0/etc/examples/388-whitespace_error_keep_plus_minus_marker +6 -0
- git_delta-0.23.0/etc/examples/55-unicode-width.diff +17 -0
- git_delta-0.23.0/etc/examples/56-unified-directory-diff +10 -0
- git_delta-0.23.0/etc/examples/60-submodule +17 -0
- git_delta-0.23.0/etc/examples/662-submodules +45 -0
- git_delta-0.23.0/etc/examples/72-color-moved-2.diff +8 -0
- git_delta-0.23.0/etc/examples/72-color-moved-3.diff +14 -0
- git_delta-0.23.0/etc/examples/72-color-moved-4.diff +8 -0
- git_delta-0.23.0/etc/examples/72-color-moved.diff +22 -0
- git_delta-0.23.0/etc/examples/802-color-moved.diff +12 -0
- git_delta-0.23.0/etc/examples/813-cthulhu.diff +1495 -0
- git_delta-0.23.0/etc/examples/822-hunk-header-within-merge-conflict.diff +545 -0
- git_delta-0.23.0/etc/examples/93-binary +16 -0
- git_delta-0.23.0/etc/examples/styles.py +4 -0
- git_delta-0.23.0/etc/performance/README.md +1 -0
- git_delta-0.23.0/etc/performance/all-benchmarks.json +26652 -0
- git_delta-0.23.0/etc/performance/chronologer.yaml +9 -0
- git_delta-0.23.0/etc/performance/data/hyperfine-output.json +3268 -0
- git_delta-0.23.0/etc/performance/data/hyperfine-processed-output.json +11702 -0
- git_delta-0.23.0/etc/performance/index.html +26720 -0
- git_delta-0.23.0/etc/performance/visualization.svg +1 -0
- git_delta-0.23.0/etc/release.Makefile +70 -0
- git_delta-0.23.0/etc/tui-demo/.gitignore +4 -0
- git_delta-0.23.0/etc/tui-demo/01-diff.tape +63 -0
- git_delta-0.23.0/etc/tui-demo/02-diff-commands.tape +85 -0
- git_delta-0.23.0/etc/tui-demo/03-log.tape +68 -0
- git_delta-0.23.0/etc/tui-demo/04-commit.tape +59 -0
- git_delta-0.23.0/etc/tui-demo/05-features.tape +75 -0
- git_delta-0.23.0/etc/tui-demo/README.md +74 -0
- git_delta-0.23.0/etc/tui-demo/_dark.tape +2 -0
- git_delta-0.23.0/etc/tui-demo/_light.tape +5 -0
- git_delta-0.23.0/etc/tui-demo/_settings.tape +12 -0
- git_delta-0.23.0/etc/tui-demo/dark.gitconfig +7 -0
- git_delta-0.23.0/etc/tui-demo/demo +489 -0
- git_delta-0.23.0/etc/tui-demo/demo.gitconfig +64 -0
- git_delta-0.23.0/etc/tui-demo/env.sh +32 -0
- git_delta-0.23.0/etc/tui-demo/light.gitconfig +3 -0
- git_delta-0.23.0/etc/tui-demo/setup +18 -0
- git_delta-0.23.0/etc/tui-demo/themes.gitconfig +471 -0
- git_delta-0.23.0/manual/.gitignore +1 -0
- git_delta-0.23.0/manual/Makefile +8 -0
- git_delta-0.23.0/manual/book.toml +9 -0
- git_delta-0.23.0/manual/gitconfig-highlight.js +7 -0
- git_delta-0.23.0/manual/src/SUMMARY.md +40 -0
- git_delta-0.23.0/manual/src/build-delta-from-source.md +17 -0
- git_delta-0.23.0/manual/src/choosing-colors-styles.md +25 -0
- git_delta-0.23.0/manual/src/color-moved-support.md +68 -0
- git_delta-0.23.0/manual/src/comparisons-with-other-tools.md +51 -0
- git_delta-0.23.0/manual/src/configuration.md +70 -0
- git_delta-0.23.0/manual/src/custom-themes.md +25 -0
- git_delta-0.23.0/manual/src/delta-configs-used-in-screenshots.md +25 -0
- git_delta-0.23.0/manual/src/diff-highlight-and-diff-so-fancy-emulation.md +11 -0
- git_delta-0.23.0/manual/src/environment-variables.md +55 -0
- git_delta-0.23.0/manual/src/features-named-groups-of-settings.md +47 -0
- git_delta-0.23.0/manual/src/features.md +32 -0
- git_delta-0.23.0/manual/src/full---help-output.md +1159 -0
- git_delta-0.23.0/manual/src/get-started.md +18 -0
- git_delta-0.23.0/manual/src/git-blame.md +7 -0
- git_delta-0.23.0/manual/src/grep.md +17 -0
- git_delta-0.23.0/manual/src/how-delta-works.md +11 -0
- git_delta-0.23.0/manual/src/hyperlinks.md +71 -0
- git_delta-0.23.0/manual/src/installation.md +101 -0
- git_delta-0.23.0/manual/src/introduction.md +23 -0
- git_delta-0.23.0/manual/src/line-numbers.md +10 -0
- git_delta-0.23.0/manual/src/merge-conflicts.md +15 -0
- git_delta-0.23.0/manual/src/navigation-keybindings-for-large-diffs.md +3 -0
- git_delta-0.23.0/manual/src/related-projects.md +31 -0
- git_delta-0.23.0/manual/src/side-by-side-view.md +72 -0
- git_delta-0.23.0/manual/src/supported-languages-and-themes.md +13 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/24-bit-color-truecolor.md +12 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/export-to-html.md +14 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/mouse-scrolling.md +8 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/shell-completion.md +12 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/tips-and-tricks.md +1 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/toggling-delta-features.md +39 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-on-windows.md +3 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-gnu-screen.md +19 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-magit.md +5 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-tmux.md +11 -0
- git_delta-0.23.0/manual/src/tips-and-tricks/using-delta-with-vscode.md +15 -0
- git_delta-0.23.0/manual/src/tips-and-tricks.md +5 -0
- git_delta-0.23.0/manual/src/tui.md +492 -0
- git_delta-0.23.0/manual/src/usage.md +21 -0
- git_delta-0.23.0/pyproject.toml +27 -0
- git_delta-0.23.0/src/align.rs +446 -0
- git_delta-0.23.0/src/ansi/console_tests.rs +76 -0
- git_delta-0.23.0/src/ansi/iterator.rs +489 -0
- git_delta-0.23.0/src/ansi/mod.rs +476 -0
- git_delta-0.23.0/src/cli.rs +1578 -0
- git_delta-0.23.0/src/color.rs +192 -0
- git_delta-0.23.0/src/colors.rs +200 -0
- git_delta-0.23.0/src/config.rs +521 -0
- git_delta-0.23.0/src/delta.rs +424 -0
- git_delta-0.23.0/src/edits.rs +1026 -0
- git_delta-0.23.0/src/env.rs +129 -0
- git_delta-0.23.0/src/features/color_only.rs +21 -0
- git_delta-0.23.0/src/features/diff_highlight.rs +111 -0
- git_delta-0.23.0/src/features/diff_line_metadata.rs +566 -0
- git_delta-0.23.0/src/features/diff_so_fancy.rs +140 -0
- git_delta-0.23.0/src/features/difftastic.rs +66 -0
- git_delta-0.23.0/src/features/hyperlinks.rs +622 -0
- git_delta-0.23.0/src/features/keep_plus_minus_markers.rs +10 -0
- git_delta-0.23.0/src/features/line_numbers.rs +1097 -0
- git_delta-0.23.0/src/features/mod.rs +576 -0
- git_delta-0.23.0/src/features/navigate.rs +289 -0
- git_delta-0.23.0/src/features/raw.rs +84 -0
- git_delta-0.23.0/src/features/side_by_side.rs +985 -0
- git_delta-0.23.0/src/format.rs +533 -0
- git_delta-0.23.0/src/git_config/mod.rs +347 -0
- git_delta-0.23.0/src/git_config/remote.rs +291 -0
- git_delta-0.23.0/src/handlers/blame.rs +573 -0
- git_delta-0.23.0/src/handlers/commit_meta.rs +151 -0
- git_delta-0.23.0/src/handlers/diff_header.rs +1318 -0
- git_delta-0.23.0/src/handlers/diff_header_diff.rs +49 -0
- git_delta-0.23.0/src/handlers/diff_header_misc.rs +61 -0
- git_delta-0.23.0/src/handlers/diff_stat.rs +114 -0
- git_delta-0.23.0/src/handlers/draw.rs +353 -0
- git_delta-0.23.0/src/handlers/git_show_file.rs +33 -0
- git_delta-0.23.0/src/handlers/grep.rs +1325 -0
- git_delta-0.23.0/src/handlers/hunk.rs +509 -0
- git_delta-0.23.0/src/handlers/hunk_header.rs +788 -0
- git_delta-0.23.0/src/handlers/merge_conflict.rs +1557 -0
- git_delta-0.23.0/src/handlers/mod.rs +65 -0
- git_delta-0.23.0/src/handlers/ripgrep_json.rs +263 -0
- git_delta-0.23.0/src/handlers/submodule.rs +192 -0
- git_delta-0.23.0/src/main.rs +329 -0
- git_delta-0.23.0/src/minusplus.rs +51 -0
- git_delta-0.23.0/src/options/get.rs +424 -0
- git_delta-0.23.0/src/options/mod.rs +4 -0
- git_delta-0.23.0/src/options/option_value.rs +114 -0
- git_delta-0.23.0/src/options/set.rs +1983 -0
- git_delta-0.23.0/src/options/theme.rs +258 -0
- git_delta-0.23.0/src/paint.rs +1178 -0
- git_delta-0.23.0/src/parse_style.rs +595 -0
- git_delta-0.23.0/src/parse_styles.rs +695 -0
- git_delta-0.23.0/src/style.rs +501 -0
- git_delta-0.23.0/src/subcommands/diff.rs +162 -0
- git_delta-0.23.0/src/subcommands/external.rs +288 -0
- git_delta-0.23.0/src/subcommands/generate_completion.rs +11 -0
- git_delta-0.23.0/src/subcommands/gitu.rs +868 -0
- git_delta-0.23.0/src/subcommands/list_syntax_themes.rs +82 -0
- git_delta-0.23.0/src/subcommands/mod.rs +19 -0
- git_delta-0.23.0/src/subcommands/parse_ansi.rs +17 -0
- git_delta-0.23.0/src/subcommands/sample_diff.rs +93 -0
- git_delta-0.23.0/src/subcommands/show_colors.rs +76 -0
- git_delta-0.23.0/src/subcommands/show_config.rs +564 -0
- git_delta-0.23.0/src/subcommands/show_syntax_themes.rs +134 -0
- git_delta-0.23.0/src/subcommands/show_themes.rs +80 -0
- git_delta-0.23.0/src/tests/ansi_test_utils.rs +271 -0
- git_delta-0.23.0/src/tests/integration_test_utils.rs +440 -0
- git_delta-0.23.0/src/tests/mod.rs +18 -0
- git_delta-0.23.0/src/tests/test_example_diffs.rs +3385 -0
- git_delta-0.23.0/src/tests/test_switch_and_style_features.rs +1169 -0
- git_delta-0.23.0/src/tests/test_utils.rs +50 -0
- git_delta-0.23.0/src/utils/bat/LICENSE +26 -0
- git_delta-0.23.0/src/utils/bat/assets.rs +81 -0
- git_delta-0.23.0/src/utils/bat/dirs.rs +41 -0
- git_delta-0.23.0/src/utils/bat/less.rs +68 -0
- git_delta-0.23.0/src/utils/bat/mod.rs +5 -0
- git_delta-0.23.0/src/utils/bat/output.rs +256 -0
- git_delta-0.23.0/src/utils/bat/terminal.rs +83 -0
- git_delta-0.23.0/src/utils/git.rs +31 -0
- git_delta-0.23.0/src/utils/helpwrap.rs +348 -0
- git_delta-0.23.0/src/utils/mod.rs +15 -0
- git_delta-0.23.0/src/utils/path.rs +118 -0
- git_delta-0.23.0/src/utils/process.rs +1254 -0
- git_delta-0.23.0/src/utils/regex_replacement.rs +112 -0
- git_delta-0.23.0/src/utils/round_char_boundary.rs +24 -0
- git_delta-0.23.0/src/utils/syntect.rs +95 -0
- git_delta-0.23.0/src/utils/tabs.rs +64 -0
- git_delta-0.23.0/src/utils/workarounds.rs +60 -0
- git_delta-0.23.0/src/wrapping.rs +1209 -0
- git_delta-0.23.0/tests/test_deprecated_options +11 -0
- git_delta-0.23.0/tests/test_navigate_less_history_file +65 -0
- git_delta-0.23.0/tests/test_raw_output_matches_git_on_full_repo_history +9 -0
- git_delta-0.23.0/tests/tui.rs +42 -0
- git_delta-0.23.0/themes.gitconfig +682 -0
- git_delta-0.0.1/PKG-INFO +0 -14
- git_delta-0.0.1/README.md +0 -3
- git_delta-0.0.1/pyproject.toml +0 -19
- git_delta-0.0.1/setup.cfg +0 -4
- git_delta-0.0.1/src/git_delta/__init__.py +0 -0
- git_delta-0.0.1/src/git_delta.egg-info/PKG-INFO +0 -14
- git_delta-0.0.1/src/git_delta.egg-info/SOURCES.txt +0 -8
- git_delta-0.0.1/src/git_delta.egg-info/dependency_links.txt +0 -1
- git_delta-0.0.1/src/git_delta.egg-info/top_level.txt +0 -1
- {git_delta-0.0.1 → git_delta-0.23.0}/LICENSE +0 -0
|
@@ -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,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/
|