Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Fix #137
|
|
Added support for an optional -dirty hash suffix which is present
in `git diff` output when files were changed in a submodule.
|
|
The `error_chain` crate is now deprecated for a long time and `anyhow`
has proven to be a popular replacement for applications.
This also improves the current error messages for panics.
```
PAGER='"less' git show
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: \
Error(Msg("Could not parse pager command."), State { next_error: Some(ParseError), \
backtrace: InternalBacktrace })', src/main.rs:136:88
```
```
PAGER='"less' git show
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Could not parse pager command.
Caused by:
missing closing quote', src/main.rs:125:88
```
|
|
|
|
- Only trigger the build if the book has changed.
- Split the job into `build` and `deploy` with specific permissions.
- Don't build documentation for dependencies.
- Deploy to GitHub Pages directly without going through the `gh-pages`
branch.
|
|
The versions 2.3+ added support for Tokio's `AsyncBufRead` trait and
futures' `Stream` trait without making the new dependencies optional.
By downgrading `bytelines`, the compilation time can be reduced.
```
$ cargo up -p bytelines --precise 2.2.2
Updating bytelines v2.4.0 -> v2.2.2
Removing bytes v1.4.0
Removing futures v0.3.26
Removing futures-channel v0.3.26
Removing futures-core v0.3.26
Removing futures-executor v0.3.26
Removing futures-io v0.3.26
Removing futures-macro v0.3.26
Removing futures-sink v0.3.26
Removing futures-task v0.3.26
Removing futures-util v0.3.26
Removing pin-project-lite v0.2.9
Removing pin-utils v0.1.0
Removing slab v0.4.8
Removing tokio v1.26.0
```
|
|
|
|
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
|
|
The `Clone`, `Copy`, `Debug` and `PartialEq` traits are no longer
derived automatically by the macro.
|
|
|
|
|
|
|
|
|
|
Fixes #1316
|
|
|
|
The `try_create_from_path` function and the `from_path` function for
tests can be merged into a single function.
|
|
* Add discord-dark theme
A theme that formats diffs for posting to Discord, using Discord's limited custom ANSI colours
* Add spacing and author tag
* Update themes.gitconfig
Co-authored-by: nickelc <constantin.nickel@gmail.com>
* Remove unneeded entries from discord-dark theme
---------
Co-authored-by: nickelc <constantin.nickel@gmail.com>
|
|
|
|
Plain links need to be enclosed in `<>` to linkify them.
|
|
* Add Tips & tricks section to manual
* Clean up manual
* Reorganize Tips & tricks
|
|
The `GitConfigEntry` enum has been removed from the module and now only
contains the `GitRemoteRepo` type.
|
|
|
|
|
|
* Add Winget installation in the docs
* Add GitHub actions to Dependabot
* Add Winget Releaser workflow
|
|
* feat: Added config option.
|
|
The type is unnecessarily wrapped and it's the only use for
`GitConfigEntry::GitRemote` enum variant.
|
|
* Update direct dependencies
* Update transient dependencies
* Switch back to `dirs` crate
The `dirs`/`dirs-sys` repositories are unarchived and the crates are
maintained again, while `dirs-next` crates aren't.
|
|
* Move theme iteration logic to `GitConfig`
The `git2::Config` type is now encapsulated and the regex is given to
`libgit2` to filter the config entries.
* Move remote url getter to `GitConfig`
|
|
* Update to clap 4
* Add help, usage, error-context features to clap
* Add wrap_help clap feature
* Remove DeriveDisplayOrder as it is now default
* Update ValueSource using statement
* Update #[clap(...)] to #[command(...)]
* Update #[clap(...)] to #[arg(...)]
* Update #[structopt(...)] to #[arg(...)]
* Remove value_parser because it is now default
* Return option & argument names as `String` due to lifetime issues
* Remove leading hyphens from arguments long definition
Leading hyphens are no longer accepted.
* Argument names are derived from field names and `snake_case`
* `help` & `version` are no longer added automatically
* Update `clap` to 4.1.8
---------
Co-authored-by: tjquillan <tjquillan@gmail.com>
|
|
Corrects misspellings identified by https://github.com/marketplace/actions/check-spelling
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
|
|
|
|
|
|
|
|
Removed "configuration" chapter in 6f0bcbd504b397479eab97a5026ef96f3ad10eb3.
|
|
The command failed because the two empty arguments for the internal `Opt`
parsing actually meant "<binary> <minus_file>" and since `minus_file` is now
parsed with `PathBufValueParser` and the value parser rejects empty values.
|
|
The colors are already sorted and can be returned as they are defined.
|
|
* Replace unmaintained/outdated GitHub Actions
* Replace `actions-rs/cargo` for `cross` usage
|
|
* Fix clippy warnings
- `clippy::uninlined_format_args`
* Fix clippy warnings
- `clippy::clone_on_copy`
- `clippy::explicit_auto_deref`
- `clippy::iter_cloned_collect`
- `clippy::map_clone`
- `clippy::needless_borrow`
- `clippy::needless_lifetimes`
- `clippy::needless_return`
- `clippy::redundant_clone`
- `clippy::redundant_field_names`
- `clippy::seek_to_start_instead_of_rewind`
- `clippy::unnecessary_cast`
- `clippy::unused_unit`
|
|
Fixes #1280
|
|
* Address deprecated clap features
* Move to Arg::get_id from Arg::get_name
* Move to ArgMatches::value_source
* Run rustfmt
|
|
|
|
* Explicitly request xz compression
Fixes #1248
* Do not insert a space between single-letter option and option value
|
|
|
|
|
|
|
|
|
|
* try fix bad alignment in unicode (#1144)
* use width instead of count in wrap_line
* fix fmt
* 3 tests do not need fail
* fix tests
Co-authored-by: Thomas Otto <th1000s@posteo.net>
|