Age | Commit message (Collapse) | Author |
|
deps: bump libc from 0.2.153 to 0.2.155
|
|
Signed-off-by: wangweijie <wangweijie@loongson.cn>
|
|
Add repology badge and openSUSE
|
|
|
|
refactor: use `derive` interface of `clap`
|
|
|
|
|
|
|
|
|
|
Apply cargo clippy lints
|
|
|
|
Add nushell completions
|
|
|
|
Use get_flag instead of contains_id
|
|
Turns out get_flag is the intended command when checking whether a flag is present rather than contains_id
|
|
Bump Rust edition, use caret requirements, upgrade to clap 4
|
|
I did this because clap 2 and 3 has a dependency on
atty which is unmaintained and has a potential security
vulnerability https://rustsec.org/advisories/RUSTSEC-2021-0145
clap 4 migration details:
- Arg::with_name() has been replaced with Arg::new()
- possible_values has been replaced with value_parser
- args.value_of has been replaced with args.get_one::<String>
- args.gen_completions_to() has been replaced with generate()
- The way we use args.is_present() means it is replaced with
contains_id()
- Shell completion has been moved to the clap_complete crate
- app_from_crate! has been replaced with command!
* Which now requires a the `cargo` feature flag to access
- line wrapping is now behind a feature flag `wrap_help`
* Migration guide recommends we enable this or else
we would need to manually implement line wrapping
- Args are now assumed to take values by default
so in order to specify a flag
we need to append .action(ArgAction::SetTrue) to each arg.
* takes_value() has been removed
|
|
It seems caret requirements is the default semver compatible strategy
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#caret-requirements
|
|
I ran `cargo msrv` and the minimum version of this crate
was 1.64.0 so bumping the Rust edition does not raise the minimum
|
|
Add MacPorts installation instructions
|
|
|
|
introduce git config option `absorb.fixupTargetAlwaysSHA`
|
|
i've gotten used to SHAs and find them clearer & faster to identify than
commit summaries, simply because the messages can be similar meanwhile
shas differ very quickly.
|
|
|
|
autostage: automatically add everything to index if index was empty
|
|
the warning didn't consider the case that some changes were staged,
but couldn't be applied.
|
|
|
|
often times, i just want to try and absorb everything.
right now, this means an extra step of `git add .` before `git absorb`,
and potentially a `git reset @` later if not everything was fixed up.
in this patch we remove both of the extra step for convenience:
if nothing was staged, we stage everything, try to create fixups,
and whatever's left uncommitted - we unstage.
|
|
introduce git config option `absorb.oneFixupPerCommit`
|
|
|
|
|
|
rebase: add `--autostash` arg to perform rebase even if uncommitted changes left
|
|
|
|
Bump libgit2-sys from 0.16.1+1.7.1 to 0.16.2+1.7.2
|
|
Bumps [libgit2-sys](https://github.com/rust-lang/git2-rs) from 0.16.1+1.7.1 to 0.16.2+1.7.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/commits)
---
updated-dependencies:
- dependency-name: libgit2-sys
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
|
|
|
|
Simplify nixpkgs install command
|
|
The package is available as an attribute on `nixpkgs` directly, plus it looks like `gitAndTools` is a deprecated alias.
|
|
Update `head_tree` when no commit happens.
|
|
This regression was introduced in
fb9e1b3950ab9b821ad402098c34bac46cfbd453.
Moreover, the tests didn't catch it because they didn't check that
there are no leftover changes.
|
|
Only update head_tree when we commit.
|
|
Fixes the case where if we pass `--dry-run` the additions/deletions
keep growing in number since we never "reset" the tree back.
|
|
Add feature to generate one fixup per commit.
|
|
|
|
|
|
This means that all hunks meant to be fixed up into the same commit
will be grouped into a single commit, rather than multiple ones.
In order to not break the workflow of others, we choose to make this
an option rather than the default. Moreover, folks can `alias
git-absorb="git-absorb --one-fixup-per-commit"` if they wish to always
use this option, and not have to type it out.
|
|
add fedora to system package manager list
|
|
|
|
Fix conditional in release.yml
|