Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
447 commits
Select commit Hold shift + click to select a range
40c8cf3
Merge pull request #966 from weihanglo/libgit2-no-vendor
ehuss Jul 29, 2023
92008c4
Publish via GitHub Actions
ehuss Jul 30, 2023
55fcfa1
Merge pull request #977 from ehuss/ci-publish
ehuss Aug 1, 2023
f371996
Mutable reference should be used with an `FnMut` type
EFanZh Jul 24, 2023
414dede
Merge pull request #970 from EFanZh/patch-1
ehuss Aug 5, 2023
f0d52d3
Implemented FusedIterator for various iterators
vallentin May 27, 2023
7f21181
Merge pull request #955 from vallentin/fused
ehuss Aug 5, 2023
18f8ad1
Add binding for `git_blame_buffer`
paulvandermeijs Aug 13, 2023
e0a329e
Update to libgit2 1.7.1
ehuss Aug 17, 2023
390c6d6
Systest no longer requires stable.
ehuss Aug 17, 2023
19b6d05
Merge pull request #982 from ehuss/update-libgit2
ehuss Aug 17, 2023
4570c39
Merge pull request #981 from paulvandermeijs/add-git_blame_buffer
ehuss Aug 26, 2023
e22951c
Update changelog for next release.
ehuss Aug 28, 2023
2aafd80
Fix html_root_url for next release
ehuss Aug 28, 2023
69eea91
Merge pull request #984 from ehuss/update-changelog
ehuss Aug 28, 2023
8775a68
Fix publish of submodule.
ehuss Aug 28, 2023
ff9dca2
Merge pull request #985 from ehuss/fix-publish-submodule
ehuss Aug 28, 2023
952ada3
Fix visibility of StashSaveOptions and DiffPatchidOptions.
ehuss Sep 16, 2023
6008651
Don't pretend that TreeWalkCbData is transparent.
ehuss Sep 16, 2023
7a80cc2
Add shallow cloneing capability
blyxyas Aug 8, 2023
2b2fb37
Merge pull request #979 from blyxyas/shallow-clone
ehuss Sep 18, 2023
67fcacc
Merge pull request #988 from ehuss/fix-visibility
ehuss Sep 18, 2023
a66496a
Merge pull request #989 from ehuss/fix-tree-walk-cb
ehuss Sep 18, 2023
83c0d98
Release 0.18.1
ehuss Sep 20, 2023
dc63db5
Merge pull request #990 from ehuss/new-release
ehuss Sep 20, 2023
f43a7e2
Add binding for GIT_OPT_SET_SSL_CERT_LOCATIONS
aharbis Oct 31, 2023
7520761
Separate functions for SSL CA file / path
aharbis Nov 3, 2023
fd4d7c7
Merge pull request #997 from aharbis/opts-ssl-cert
ehuss Nov 3, 2023
6ab773f
Update init.rs
c-git Nov 5, 2023
8136881
Merge pull request #1000 from c-git/patch-1
ehuss Nov 6, 2023
210c661
tree: tests: Make the test tree have 8 entries, to allow more thoroug…
joshtriplett Dec 31, 2023
2be11dd
tree::TreeIter: Implement `nth` to make jumping ahead more efficient
joshtriplett Dec 31, 2023
5d0628e
tree: tests: Test `TreeIter::nth`
joshtriplett Dec 31, 2023
710701c
Merge pull request #1004 from joshtriplett/nth
ehuss Jan 2, 2024
c4e033a
Appease latest rustc nightly
tamird Jan 7, 2024
a316f79
Explain reason for `Refdb`.
ehuss Jan 11, 2024
af35029
Merge pull request #1008 from tamird/fix-build
ehuss Jan 11, 2024
0885aba
Fix some rustdoc warnings
ehuss Jan 11, 2024
2d03f7e
Merge pull request #1010 from ehuss/fix-docs
ehuss Jan 11, 2024
8c92f9f
examples: replace structopt with clap
tamird Jan 7, 2024
ed5ac5f
Allow find commit by short hash prefix
Brooooooklyn Jan 23, 2024
502099a
Merge pull request #1011 from Brooooooklyn/master
ehuss Jan 23, 2024
db5c037
Fix minor typo
dciug Jan 27, 2024
0731960
Merge pull request #1013 from dciug/patch-1
ehuss Jan 27, 2024
3d5fb21
Fix syntax of example `git fetch`
giraugh Feb 3, 2024
93dc901
Merge pull request #1016 from giraugh/patch-1
ehuss Feb 3, 2024
15e61e4
Allow find tag by prefix hash
Brooooooklyn Feb 2, 2024
223945f
Allow find object by prefix
Brooooooklyn Feb 2, 2024
e4cba79
chore: update libgit2 submodule to 1.7.2
weihanglo Feb 6, 2024
e10093e
Add link to libgit2 in sys changelog.
ehuss Feb 7, 2024
4f9b2c5
Merge pull request #1015 from Brooooooklyn/lookup-tag-prefix
ehuss Feb 7, 2024
173232a
Merge pull request #1014 from Brooooooklyn/master
ehuss Feb 7, 2024
9e57876
Merge pull request #1017 from weihanglo/libgit2-1.7.2
ehuss Feb 7, 2024
57dc89c
Update changelog for next release.
ehuss Feb 7, 2024
987c4e6
Merge pull request #1018 from ehuss/changelog
ehuss Feb 7, 2024
d9f2f57
Temporarily limit systest to stable.
ehuss Feb 15, 2024
81a1f16
Merge pull request #1021 from ehuss/stable-ctest2
ehuss Feb 15, 2024
ea1ad5c
Create FUNDING.json
ehuss Feb 15, 2024
92d97f5
Merge pull request #1020 from rust-lang/ehuss-patch-1
ehuss Feb 15, 2024
d418516
Remove redundant imports.
ehuss Feb 19, 2024
b1ea7cc
Merge pull request #1024 from ehuss/redundant-import
ehuss Feb 19, 2024
9be523e
Revert "Merge pull request #1021 from ehuss/stable-ctest2"
ehuss Feb 19, 2024
3da58f3
Merge pull request #1023 from ehuss/ctest2
ehuss Feb 19, 2024
8d18374
Add bindings for mwindow opts
rpelliard Mar 11, 2024
1e6524e
use libc::size_t as param type
rpelliard Mar 13, 2024
a75e007
Merge pull request #1007 from tamird/clap
ehuss Mar 14, 2024
68880b2
make functions unsafe
rpelliard Mar 18, 2024
3778952
Merge pull request #1035 from rpelliard/mwindow-opts
ehuss Mar 18, 2024
1456fcd
Release 0.18.3
rpelliard Mar 18, 2024
a7f2ac4
Merge pull request #1036 from rpelliard/release-0.19.0
ehuss Mar 19, 2024
389a06f
Fix publish not following redirect
ehuss Mar 19, 2024
04427a3
Merge pull request #1037 from ehuss/fix-publish
ehuss Mar 19, 2024
18bfc89
Consistently use the error message from a callback error.
ehuss Apr 13, 2024
5a5c86d
Improve docs for PushUpdate
ilyagr Apr 14, 2024
08c18ed
docs: unify docs for callback types and functions that set callbacks
ilyagr Apr 14, 2024
9c9305e
Fix indentation in documentation of callbacks.
ehuss Apr 15, 2024
c3454fe
Merge pull request #1044 from ilyagr/docs
ehuss Apr 15, 2024
b534e13
libgit2: Bump to v1.8.0
bnjmnt4n Mar 1, 2024
7fa64c6
remote: Update struct representation for `git_push_options`
bnjmnt4n Mar 2, 2024
cb8bbc6
lib: Add `RemoteUpdateFlags` bitflag
bnjmnt4n Mar 2, 2024
6cb97bc
remote: Update `git_remote_update_tips` to use `RemoteUpdateFlags`
bnjmnt4n Mar 2, 2024
3433353
remote: Update `git_fetch_options` to use `RemoteUpdateFlags`
bnjmnt4n Mar 2, 2024
b766291
libgit2-sys: Update struct representation for `git_config_entry`
bnjmnt4n Mar 2, 2024
202b38c
libgit2-sys: Add new git error code enums
bnjmnt4n Mar 2, 2024
ee69ec5
repo: Update `git_commit_create` and `git_commit_create_buffer`
bnjmnt4n Mar 2, 2024
8b5fba7
lib: Add `ConfigLevel::Worktree`
bnjmnt4n Mar 22, 2024
c074cab
worktree: Update struct representation for `git_worktree_add_options`
bnjmnt4n Mar 22, 2024
3bde019
libgit2-sys: Fix build issue with libssh2
bnjmnt4n Mar 2, 2024
26853d9
tests: Account for new `worktreeconfig` extension added
bnjmnt4n Mar 22, 2024
eeb04b9
cred/tests: Account for changes in `git_config`
bnjmnt4n Mar 22, 2024
e21a5de
test: Fix `realpath` failure on Windows
bnjmnt4n Mar 23, 2024
2a617b6
systest: Add `errors.h` header file
bnjmnt4n Mar 2, 2024
a65e7a4
libgit2-sys: Bump versions
bnjmnt4n Mar 22, 2024
449c6be
libgit2: Bump to v1.8.1
bnjmnt4n May 15, 2024
8640496
libgit2-sys: Switch to new bundled llhttp HTTP parser
bnjmnt4n May 15, 2024
78872dd
remote: Update `git_fetch_options` to use bitflags instead of bitfields
bnjmnt4n May 15, 2024
938df21
libgit2-sys: Add updated enum values for `git_libgit2_opt_t`
bnjmnt4n May 16, 2024
76ecfe7
contributing: Add note about `git diff`
bnjmnt4n Mar 22, 2024
0715c33
Reduce Error size with Box<str>
kornelski May 19, 2024
949aa49
Merge pull request #1053 from kornelski/smallerr
ehuss May 20, 2024
324f421
Merge pull request #1032 from bnjmnt4n/libgit2-v1.8.0
ehuss May 21, 2024
c9b5f81
Merge pull request #1043 from ehuss/callback-errors
ehuss May 21, 2024
e17e77c
Add global opts related to server timeouts
mzottola May 15, 2024
9598e97
Merge pull request #1052 from Qovery/feat/support-server-timeouts-master
ehuss May 24, 2024
79b1bed
repo: add branch_upstream_remote refname doc (#1055)
ericswpark May 27, 2024
b318ea3
Merge pull request #1056 from ericswpark/doc-add
ehuss May 27, 2024
db3a3ce
Bump versions for 1.8.1
ehuss Jun 14, 2024
9a5c970
Merge pull request #1059 from ehuss/bump-versions
ehuss Jun 14, 2024
b1b2f55
odb: fix OdbReader read return value
gensmusic Jun 22, 2024
c3c226a
Add test for OdbReader read impl.
ehuss Jun 25, 2024
f1f09ce
Merge pull request #1061 from gensmusic/master
ehuss Jun 25, 2024
52fc8d0
(Breaking Changes) Re-implement tracing wrapper in a safer way, add s…
vcfxb Jul 22, 2024
7be7525
Cargo fmt
vcfxb Jul 22, 2024
fa33a26
(Breaking Change) remove unnecessary `Option` wrapper on `Error::last…
vcfxb Jul 22, 2024
788306c
cargo fmt
vcfxb Jul 22, 2024
3cef411
README: document when libgit2 is statically linked
ilyagr Jul 25, 2024
cb32b01
Merge pull request #1073 from ilyagr/patch-1
ehuss Jul 26, 2024
fc1556a
derive `Debug` for `transport::Service`
vcfxb Aug 1, 2024
cfe2cd3
Merge pull request #1074 from vcfxb/service-debug
weihanglo Aug 1, 2024
4e763c7
Don't show console on Windows
sheremetyev Aug 11, 2024
9e03d66
README: update reference to libgit2 version
mjoerg Aug 15, 2024
7285832
Merge pull request #1077 from mjoerg/readme-fix-version
ehuss Aug 15, 2024
f4c6914
repo: implement git_repository_commondir
st3iny Aug 21, 2024
cb4ea6e
Add description line for commondir
ehuss Aug 21, 2024
2e0fcda
Merge pull request #1079 from st3iny/repo/commondir
ehuss Aug 21, 2024
91907f9
delete ineffective ssh_key_from_memory crate feature
martinvonz Oct 2, 2024
5dd077a
Added merge_base_octopus
Caleb-T-Owens Oct 2, 2024
abbd64e
Merge pull request #1088 from gitbutlerapp/add-merge-base-octopus
ehuss Oct 2, 2024
8471723
Merge pull request #1075 from sheremetyev/hide-console-windows
ehuss Oct 26, 2024
4639d78
Maintain backwards compatibility for bitflags types
Nov 12, 2024
a2e05da
Merge pull request #1096 from kjughx/backcompat-traits
ehuss Nov 12, 2024
41d8e06
Propagate errors on Tree::walk
edrevo Nov 19, 2024
4055998
docs(config): add link to snapshot method
RobWalt Nov 27, 2024
9b18397
Merge pull request #1102 from RobWalt/improve-config-docs
ehuss Nov 27, 2024
91980d9
Update README.md
leopardracer Dec 2, 2024
7d5c020
Merge pull request #1103 from leopardracer/patch-1
ehuss Dec 2, 2024
7db456d
<feature> add GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH support
Dec 18, 2024
9ae249f
Clarify disable_pathspec_match docs
ehuss Dec 18, 2024
1742e6b
Merge pull request #1107 from yuanyan3060/master
ehuss Dec 18, 2024
3e2c8ce
Expose git_packbuilder_write fn
Letiste Dec 31, 2024
a1dabe6
Update comment and add tests
Letiste Jan 2, 2025
a660082
Update libgit2 to 1.9
ehuss Jan 4, 2025
68aa1ad
Merge pull request #1111 from ehuss/libgit2-1.9.0
ehuss Jan 4, 2025
635d700
Merge pull request #1110 from Letiste/leo.sale/export-packbuilder-wri…
ehuss Jan 4, 2025
ba07a6f
Merge pull request #1087 from martinvonz/push-xxqzlsxvkwrr
ehuss Jan 4, 2025
e0d7dae
Simplify some of the tree_walk changes
ehuss Jan 4, 2025
3b8dc04
Merge pull request #1098 from edrevo/edrevo/fix-tree-walk
ehuss Jan 4, 2025
8977c0c
Merge pull request #1071 from vcfxb/fix-tracing-ub
ehuss Jan 4, 2025
92d96ac
Merge pull request #1072 from vcfxb/remove-error-unwraps
ehuss Jan 4, 2025
8ce89e2
Squelch the warning about libgit2_vendored check-cfg
ehuss Jan 4, 2025
f538a99
Add a Cargo.lock
ehuss Jan 4, 2025
e16a3f9
Merge pull request #1112 from ehuss/check-cfg
ehuss Jan 4, 2025
ca65651
Merge pull request #1113 from ehuss/cargo-lock
ehuss Jan 5, 2025
a4bd932
Update the `time` dev-dependency
ehuss Jan 5, 2025
e46a1f9
Check that Cargo.lock is not outdated in CI
ehuss Jan 5, 2025
cbf9dd4
Merge pull request #1116 from ehuss/update-time
ehuss Jan 5, 2025
14cdc15
Merge pull request #1115 from ehuss/lock-locked
ehuss Jan 5, 2025
7173e50
Add release notes for 1.9 changes
ehuss Jan 5, 2025
8152297
Merge pull request #1117 from ehuss/relnotes-1.9
ehuss Jan 5, 2025
8c18658
Add triagebot
ehuss Jan 20, 2025
f095112
Merge pull request #1119 from ehuss/triagebot
ehuss Jan 20, 2025
f0a296c
Add binding for GIT_OPT_SET_CACHE_OBJECT_LIMIT
qaqland Jan 19, 2025
f0847fc
fix: prevent crash when repository url is empty
divine Jan 22, 2025
a3b90cb
Merge pull request #1120 from divine/patch-1
ehuss Jan 22, 2025
09ad565
Remove panic wrapper in tracing callback.
vcfxb Jan 25, 2025
c54f448
nit: remove unused import
vcfxb Jan 25, 2025
5e09a91
docs: Update link to libgit2 homepage
MrSubidubi Feb 4, 2025
bc646ee
Merge pull request #1123 from MrSubidubi/patch-1
ehuss Feb 4, 2025
09bb3a7
docs: Document that pushurl_bytes returns null if no push url is set
xtexx Feb 6, 2025
7b7be43
Merge pull request #1124 from xtexx/clarify-doc
ehuss Feb 6, 2025
c6dd1ac
Update url to 2.5.4
ericswpark Feb 21, 2025
64017cd
Merge pull request #1128 from ericswpark/idna-patch
weihanglo Feb 22, 2025
fb614e0
expose libgit2 `git_branch_upstream_merge`
vlad-anger Feb 28, 2025
84e39e4
fix formatting
vlad-anger Feb 28, 2025
d1ae3b6
Merge pull request #1131 from vlad-anger/expose/git_branch_upstream_m…
weihanglo Feb 28, 2025
0088ea0
Added git_index_conflict_get
yuanyan3060 Mar 4, 2025
adbbbf4
Add test case for credential.helper containing slashes
aibaars Mar 10, 2025
c776e8d
Fix CredentialHelper::add_command
aibaars Mar 5, 2025
4c92a5c
Fix lifetimes of outputs for Patch
ehuss Mar 12, 2025
e8c9126
Merge pull request #1141 from ehuss/patch-lifetime
weihanglo Mar 12, 2025
892215d
Fix advapi32 linking on Windows
ehuss Mar 17, 2025
b6d5975
Merge pull request #1143 from ehuss/fix-windows-advapi32
ehuss Mar 17, 2025
af81314
Merge pull request #1134 from yuanyan3060/git_index_conflict_get
ehuss Mar 17, 2025
c979b22
Added index_conflict_remove
yuanyan3060 Mar 4, 2025
bce4478
Merge pull request #1133 from yuanyan3060/master
ehuss Mar 17, 2025
c737cea
Merge pull request #1121 from vcfxb/master
ehuss Mar 17, 2025
10771e4
Merge pull request #1118 from qaqland/add-opts
ehuss Mar 17, 2025
2572c23
feat(merge): add merge_file_from_index
MikeJerred Jun 23, 2024
e80d1ab
style: fix code formatting
MikeJerred Jun 23, 2024
742c630
fix: review comments
MikeJerred Nov 5, 2024
b76c8be
fix: use correct typings for git_merge_file_flag_t
MikeJerred Jan 5, 2025
e1e933b
fix: mark to_raw as `unsafe`
MikeJerred Jan 5, 2025
3cc3e25
fix: type mismatch error
MikeJerred Jan 5, 2025
8381b72
Make MergeFileOptions::raw pub(crate)
ehuss Mar 17, 2025
197106b
Drop Copy/Clone from git_merge_file_result
ehuss Mar 17, 2025
d1b40aa
Drop lifetime for MergeFileResult
ehuss Mar 17, 2025
258d3b6
Merge pull request #1062 from MikeJerred/master
ehuss Mar 17, 2025
1e1687e
Merge pull request #1137 from aibaars/fix-credential-helper
ehuss Mar 17, 2025
8980c61
Bump versions of git2 and libgit2-sys
ehuss Mar 17, 2025
62d353e
Merge pull request #1144 from ehuss/bump-version
ehuss Mar 17, 2025
0c3cba1
add a missing status field
seokju-na Mar 29, 2025
7bebf64
Merge pull request #1151 from seokju-na/status-wt-unreadable
ehuss Mar 30, 2025
00faf61
Add missing code checks to Error::raw_code()
alyssais Apr 3, 2025
b82f801
Merge pull request #1153 from alyssais/raw_code
ehuss Apr 3, 2025
38681b1
fix: add a backtick
reddevilmidzy Apr 22, 2025
ba5e1b3
Make link an intra-doc link
ehuss Apr 22, 2025
5bc3baa
Merge pull request #1155 from reddevilmidzy/master
ehuss Apr 22, 2025
1774e57
Call init in Indexer::new
ehuss May 5, 2025
7f42b7a
Clarify Indexer::new `path` parameter
ehuss May 5, 2025
eef4592
Merge pull request #1160 from ehuss/indexer-init
ehuss May 5, 2025
26bfd30
Update version of git2 to 0.20.2
ehuss May 5, 2025
1fb5f64
Merge pull request #1161 from ehuss/bump-version
ehuss May 5, 2025
ba43121
Added comments to describe the add flags
Caleb-T-Owens May 15, 2025
53442d4
Merge pull request #1163 from Caleb-T-Owens/cto-add-add-comments
ehuss May 16, 2025
da9c98d
Make url optional via a new "cred" feature gate for credential helpers
joshtriplett Jun 18, 2025
cc9beb6
Update to libgit2 1.9.1
ehuss Jun 21, 2025
2f3a8b9
docs(#1148): Add note regarding potentially confusing behavior of `gi…
vcfxb Mar 25, 2025
cb57f5c
Merge pull request #1169 from ehuss/libgit2-v1.9.1
ehuss Jun 21, 2025
70c48c3
Merge pull request #1149 from vcfxb/venus/1148
ehuss Jun 21, 2025
75af0be
Drop civet/conduit from dev dependencies
ehuss Jun 21, 2025
dc9cb88
Merge pull request #1170 from ehuss/drop-civet
ehuss Jun 21, 2025
7b93e89
Update dependencies
ehuss Jun 21, 2025
79e74d0
Allow init_ssl_cert_env_vars for now
ehuss Jun 21, 2025
48b46f8
Update libgit2-sys changelog for 0.18.2+1.9.1
ehuss Jun 21, 2025
9b82dce
Merge pull request #1171 from ehuss/update-deps
ehuss Jun 21, 2025
c8e5d5d
Merge pull request #1172 from ehuss/changelog-sys
ehuss Jun 21, 2025
b221928
Update to 2021 edition
ehuss Jun 22, 2025
bb658dd
Merge pull request #1173 from ehuss/edition
ehuss Jun 22, 2025
03ef1a7
Stop enabling "ssh", "https", and "cred" by default
joshtriplett Aug 11, 2025
875a4cc
Bump git2 to 0.21.0 due to change in default feature flags
joshtriplett Aug 11, 2025
3db61eb
Merge pull request #1168 from joshtriplett/cred-feature
ehuss Aug 12, 2025
3a29eda
CI: Fix lockfile verification
ehuss Aug 12, 2025
9dfe8db
Merge pull request #1177 from ehuss/ci-fix-lock-check
ehuss Aug 12, 2025
1c94d61
Make Binding public
edrevo Mar 23, 2023
a934af2
feat: Add `git_odb_backend_data_malloc` and `git_odb_backend_data_free`
tecc Aug 15, 2025
b238d16
Merge pull request #940 from edrevo/public-binding
weihanglo Aug 15, 2025
53485da
format: Fix formatting in libgit2-sys/lib.rs
tecc Aug 16, 2025
ae91c48
Merge pull request #1178 from tecc/feat/new-odb-allocator-functions
weihanglo Aug 16, 2025
26981f3
Test features in CI
joshtriplett Aug 22, 2025
fd6d70f
Add docs.rs metadata for features
joshtriplett Aug 22, 2025
05fa593
Add required features for examples
joshtriplett Aug 22, 2025
dfd9b91
README.md: Add feature documentation
joshtriplett Aug 22, 2025
d58c7ce
Merge pull request #1182 from joshtriplett/update-docs-for-features
weihanglo Sep 13, 2025
09b34c9
Update README note about ssh feature
rubberduck203 Sep 29, 2025
4c982fb
Add bindings for cache size options
rpelliard Oct 6, 2025
c2c78cb
Merge pull request #1187 from rubberduck203/patch-1
weihanglo Oct 6, 2025
87ec58b
use signed type and add tests
rpelliard Oct 6, 2025
1d9f4d4
Merge pull request #1188 from rpelliard/add-cache-size-bindings
ehuss Oct 7, 2025
4d19f24
Improve function docs for `Repository::tag_foreach`
cyqsimon Oct 19, 2025
aa0f63d
Merge pull request #1190 from cyqsimon/tag-foreach-docs
ehuss Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CI
on: [push, pull_request]
on:
pull_request:
merge_group:

jobs:
test:
Expand All @@ -26,13 +28,15 @@ jobs:
rust: stable
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
- run: cargo test --no-default-features
- run: cargo test
- run: cargo run --manifest-path systest/Cargo.toml
- run: cargo test --manifest-path git2-curl/Cargo.toml
- run: cargo test --locked
- run: cargo test --features https,ssh
- run: cargo run -p systest
- run: cargo test -p git2-curl

rustfmt:
name: Rustfmt
Expand All @@ -42,3 +46,20 @@ jobs:
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
- run: cargo fmt -- --check

# The success job is here to consolidate the total success/failure state of
# all other jobs. This job is then included in the GitHub branch protection
# rule which prevents merges unless all other jobs are passing. This makes
# it easier to manage the list of jobs via this yml file and to prevent
# accidentally adding new jobs without also updating the branch protections.
success:
name: Success gate
if: always()
needs:
- test
- rustfmt
runs-on: ubuntu-latest
steps:
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
- name: Done
run: exit 0
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish
on:
workflow_dispatch:
inputs:
git2:
description: "Publish git2"
type: boolean
default: true
git2_curl:
description: "Publish git2-curl"
type: boolean
default: true
libgit2_sys:
description: "Publish libgit2-sys"
type: boolean
default: true

permissions:
contents: write

jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PUBLISH_GIT2: ${{ inputs.git2 }}
PUBLISH_GIT2_CURL: ${{ inputs.git2_curl }}
PUBLISH_LIBGIT2_SYS: ${{ inputs.libgit2_sys }}
run: ./ci/publish.sh
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
target
Cargo.lock
src/main.rs
Loading