-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Add new crate gix-macros
#992
Commits on Aug 26, 2023
-
proc-macro crates, it provides `momo` for de-monomorphization for now. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 6dae9e9 - Browse repository at this point
Copy the full SHA 6dae9e9View commit details -
Apply
momo
to modgix::discover
to: - `ThreadSafeRepository::discover_opts` - `ThreadSafeRepository::discover_with_environment_overrides_opts` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 58fbb08 - Browse repository at this point
Copy the full SHA 58fbb08View commit details -
to: - `ThreadSafeRepository::init` - `ThreadSafeRepository::init_opts` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 46a9dfe - Browse repository at this point
Copy the full SHA 46a9dfeView commit details -
Apply
momo
togix::object::tree
to: - `Tree<'_>::lookup_entry_by_path` - `Tree<'_>::peel_to_entry_by_path` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for d835526 - Browse repository at this point
Copy the full SHA d835526View commit details -
Apply
momo
to modgix::open::repository
to: - `ThreadSafeRepository::open_opts` - `ThreadSafeRepository::open_with_environment_overrides` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 3ce0144 - Browse repository at this point
Copy the full SHA 3ce0144View commit details -
to: - `Pathspec<'_>::pattern_matching_relative_path` - `Pathspec<'_>::is_included` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 767ec2d - Browse repository at this point
Copy the full SHA 767ec2dView commit details -
to: - `set_target_id` - `Platform<'_>::prefixed` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 3c205ab - Browse repository at this point
Copy the full SHA 3c205abView commit details -
Apply
momo
to modremote::connection::fetch::receive_pack
to `receive` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for ea5c2db - Browse repository at this point
Copy the full SHA ea5c2dbView commit details -
Apply
momo
to modgix::repository
to: - `Repository::transport_options` - `Repository::find_object` - `Repository::try_find_object` - `Repository::find_head` - `Repository::try_find_head` - `Repository::tag` - `Repository::tag_reference` - `Repository::try_find_remote` - `Repository::try_find_remote_without_url_rewrite` - `Repository::rev_parse` - `Repository::worktree_stream` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 5a50537 - Browse repository at this point
Copy the full SHA 5a50537View commit details -
Fix clippy lints in
gix/src/repository/remote.rs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for ff210d8 - Browse repository at this point
Copy the full SHA ff210d8View commit details
Commits on Aug 28, 2023
-
Manually de-
momo
Repository::try_find_remote_{without_url_rewrite}
Since the `try_find_remote_inner` is already a separate function, there's no need to use `momo`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for e760225 - Browse repository at this point
Copy the full SHA e760225View commit details
Commits on Aug 29, 2023
-
Remove
TryInto
support fromgix_macros::momo
Part of the reason is that `impl TryInto` isn't as common as `AsRef`, `AsMut` or `Into`, but also because its error handling logic is much harder to parse and replace in the inner function. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 95a1626 - Browse repository at this point
Copy the full SHA 95a1626View commit details -
Dramatically simplify
gix_macros::momo
And make applying support of `gix_macros::momo` truly painless by making it work out-of-the-box. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for c72eaa0 - Browse repository at this point
Copy the full SHA c72eaa0View commit details -
Remove unnecessary
#[allow(clippy::needless_lifetimes)]
Thanks for new internal of `gix_macros::momo`! Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for e1b9d51 - Browse repository at this point
Copy the full SHA e1b9d51View commit details -
Remove unnecessary change in
repository/config/transport.rs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 86b8e50 - Browse repository at this point
Copy the full SHA 86b8e50View commit details -
feat
momo
: Support parsing pattern in paramsSo that we can slap it on more functions. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for b5f78be - Browse repository at this point
Copy the full SHA b5f78beView commit details -
feat
momo
: Rm unnecessary#[allow(unused_mut)]
on generated inner fnNow that the inner function is actually identical to the original function before passed into `momo`, except for visibility, function name and the lack of function doc. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for b619456 - Browse repository at this point
Copy the full SHA b619456View commit details -
Rm unnecessary
#[allow(unused_mut)]
put onmomo
ed functionsSigned-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 89ae797 - Browse repository at this point
Copy the full SHA 89ae797View commit details -
Apply
momo
to modgix::create::into
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for cd3c289 - Browse repository at this point
Copy the full SHA cd3c289View commit details -
Apply
momo
to modconfig::snapshot::access
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 25912fe - Browse repository at this point
Copy the full SHA 25912feView commit details -
Apply
momo
to fngix::revision::Spec::from_bstr
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 1d90301 - Browse repository at this point
Copy the full SHA 1d90301View commit details -
Apply
momo
to fngix::Remote::save_as_to
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 875c287 - Browse repository at this point
Copy the full SHA 875c287View commit details
Commits on Sep 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 48a2088 - Browse repository at this point
Copy the full SHA 48a2088View commit details -
Configuration menu - View commit details
-
Copy full SHA for 705f2f3 - Browse repository at this point
Copy the full SHA 705f2f3View commit details -
Remove
TODO
ingix-macros/src/lib.rs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for c4ed7c1 - Browse repository at this point
Copy the full SHA c4ed7c1View commit details
Commits on Sep 3, 2023
-
Add test-suite for failure modes
Also, discover that apparently `momo` isn't effective where it should be *or* the implementation is more complex.
Configuration menu - View commit details
-
Copy full SHA for c8e7324 - Browse repository at this point
Copy the full SHA c8e7324View commit details
Commits on Sep 7, 2023
-
Fix ui test
error_if_ineffective
`ty_conversions` only cover named generics, it doesn't cover `impl Trait`. I also changed the span for the error to `call_site`, otherwise it would show that the `compile_error!` comes from the comment, which is impossible. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 9be2622 - Browse repository at this point
Copy the full SHA 9be2622View commit details -
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Configuration menu - View commit details
-
Copy full SHA for 72545e9 - Browse repository at this point
Copy the full SHA 72545e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d76efdd - Browse repository at this point
Copy the full SHA d76efddView commit details