summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-05-24Performance tweaksarchitecture-docDan Davison
2023-05-24Update ARCHITECTURE.mdDan Davison
2023-05-24Clean upDan Davison
2023-05-17Fix warning highlight for trailing whitespace (#1037)William Escande
Fix #137
2023-05-08Fix submodule diff parsing (#1413)Thomas Otto
Added support for an optional -dirty hash suffix which is present in `git diff` output when files were changed in a submodule.
2023-04-26Replace deprecated `error_chain` crate with `anyhow` (#1405)nickelc
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 ```
2023-04-26Move 24-bit color / truecolor tip out of tmux sectionDan Davison
2023-04-26Improve manual build job (#1404)nickelc
- 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.
2023-04-26Downgrade and pin the `bytelines` crate (#1378)nickelc
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 ```
2023-04-26Remove unneeded `extern crate` statements (#1345)nickelc
2023-04-26Fix some typos (#1379)Alexander Seiler
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
2023-04-26Update `bitflags` to 2.2.1 (#1361)nickelc
The `Clone`, `Copy`, `Debug` and `PartialEq` traits are no longer derived automatically by the macro.
2023-04-25Clarify how to use delta with `tmux` (#1402)isak102
2023-04-10Add VSCode documentationDan Davison
2023-03-23add: installation instructions for conda/mamba (#1371)Yasin Tatar
2023-03-19Add link to walles/riff (#1362)Johan Walles
2023-03-15Remove manual line-wrapping (#1350)Dan Davison
Fixes #1316
2023-03-15Improve `grep` documentationDan Davison
2023-03-12Merge the different `GitConfig` constructors for a config file (#1342)nickelc
The `try_create_from_path` function and the `from_path` function for tests can be merged into a single function.
2023-03-11Add discord-dark theme (#1334)ILikePlayingGames
* 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>
2023-03-10Derive the default for enums with `#[derive(Default)]`/`#[default]` (#1341)nickelc
2023-03-10Set language specifiers for code blocks and fix links in manual (#1340)nickelc
Plain links need to be enclosed in `<>` to linkify them.
2023-03-09Tips and tricks manual section (#1339)Dan Davison
* Add Tips & tricks section to manual * Clean up manual * Reorganize Tips & tricks
2023-03-09Rename `git_config_entry` module to `remote` (#1337)nickelc
The `GitConfigEntry` enum has been removed from the module and now only contains the `GitRemoteRepo` type.
2023-03-09Add methods for getting `GitConfig` as reference (#1336)nickelc
2023-03-08Get git's minus/plus style from config instead of copying it around (#1329)nickelc
2023-03-07Add Winget Releaser workflow (#1331)sitiom
* Add Winget installation in the docs * Add GitHub actions to Dependabot * Add Winget Releaser workflow
2023-03-05Added config option. (#1324)Paolo Insogna
* feat: Added config option.
2023-03-05Return the `GitRemoteRepo` type directly (#1328)nickelc
The type is unnecessarily wrapped and it's the only use for `GitConfigEntry::GitRemote` enum variant.
2023-03-05Update dependencies & switch back to the `dirs` crate (#1325)nickelc
* 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.
2023-03-05Encapsulate `git2` types (#1326)nickelc
* 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`
2023-03-03Update `clap` to 4.1 (#1322)nickelc
* 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>
2023-03-03Spelling (#1257)Josh Soref
Corrects misspellings identified by https://github.com/marketplace/actions/check-spelling Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-03Add `gruvmax-fang` theme (#1291)Max Fang
2023-03-03Fix warning from bat for an unknown syntax theme (#1319)nickelc
2023-03-03Update `git2` to 0.16.1 (#1323)nickelc
2023-03-03Fixed broken link to README (#1185)USAMI Kenta
Removed "configuration" chapter in 6f0bcbd504b397479eab97a5026ef96f3ad10eb3.
2023-03-01Fix the`--show-themes` command (#1320)nickelc
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.
2023-02-28Reduce allocations during `--show-colors` (#1315)nickelc
The colors are already sorted and can be returned as they are defined.
2023-02-28Replace unmaintained/outdated GitHub Actions (#1317)nickelc
* Replace unmaintained/outdated GitHub Actions * Replace `actions-rs/cargo` for `cross` usage
2023-02-28Fix clippy warnings (#1298)nickelc
* 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`
2023-01-13Mention use of DELTA_FEATURES in side-by-side section of manualDan Davison
Fixes #1280
2022-12-04Address deprecated clap features (#1251)Thomas Quillan
* Address deprecated clap features * Move to Arg::get_id from Arg::get_name * Move to ArgMatches::value_source * Run rustfmt
2022-12-03Bump version0.15.1Dan Davison
2022-12-03Explicitly request xz compression (#1249)Dan Davison
* Explicitly request xz compression Fixes #1248 * Do not insert a space between single-letter option and option value
2022-12-03Bump version in private Homebrew formulaDan Davison
2022-12-03Bump version in links to executablesDan Davison
2022-12-03Bump version in Cargo.lockDan Davison
2022-12-03Bump version0.15.0Dan Davison
2022-12-03try fix bad alignment in unicode (#1144) (#1145)Sheldon Nico
* 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>