Commit Graph

233 Commits

Author SHA1 Message Date
Dan Davison
a589ff9deb Bump version 2024-09-11 08:29:53 -04:00
Thomas Otto
3f092c7e74 Upgrade and pin unicode-width to v0.1.12
v0.1.13 calculates the width of some characters differently, which
causes delta to panic

See unicode-rs/unicode-width#55 and unicode-rs/unicode-width#66
2024-09-11 08:24:33 -04:00
Dan Davison
1482d5886c Bump version 2024-08-24 08:39:06 -04:00
Dan Davison
253487bbc1 Bump version 2024-08-16 08:36:01 -04:00
Dan Davison
5c53c5e3d9
Support passing arguments to git diff and diff (#1697)
Adds --diff-args with short form -@.
2024-08-15 06:42:41 -04:00
Thomas Otto
f441d4d083 Fix build for rust 1.80
Upgrade "time" (and its dependency chain rooted at "plist"), the previous
version did not build with 1.80.

Tell the new 'unexpected_cfgs' lint that 'tarpaulin_include' is okay

Mark one clippy lint as a false positive
2024-08-01 21:40:55 -04:00
Tim Hill
95b2689d4a
Update syntect to 5.2.0 (#1672) 2024-07-17 10:23:46 -04:00
wangweijie
c1e8e7b163
deps: bump libc from 0.2.153 to 0.2.155 (#1715)
Signed-off-by: wangweijie <wangweijie@loongson.cn>
2024-07-17 05:22:02 -04:00
Tau Gärtli
c4803e6825
Update terminal-colorsaurus (#1699)
* Update terminal-colorsaurus to 0.4.0

* Update `terminal-colorsaurus` with bugfix

> * 🐛 Fixed `OSC 11` response being visible to users of GNU Screen
     by detecting Screen and erroring before sending any control sequences (bash/terminal-colorsaurus#16).

* Update `terminal-colorsaurus` to 0.4.3
2024-07-16 13:39:59 -04:00
Thomas Otto
5d538b2303 Make relative-paths work with binary files
`relativize_path_maybe()` was not called in this case. Added
test and converted a few existing ones to insta.
2024-07-09 00:00:18 +01:00
Thomas Otto
096941f77f
tests: add insta for snapshot testing (#1739)
Insta makes writing new tests or performing changes which update the
expected value(s) easier. The new reference data can be reviewed
and inserted/updated automatically by `cargo insta review` (after
`cargo install cargo-insta`, but that tool is optional).

The snapshots are stored inline using the `@""` syntax and not in
separate files because the delta test output is small and designed to
be human readable.

See https://insta.rs/#hello-snapshot-testing
and https://docs.rs/insta/1.39.0/insta/
2024-07-06 10:35:06 -04:00
Dan Davison
13c8219799 Bump version 2024-03-16 10:25:15 -04:00
Dan Davison
a6cd23c48f
Upgrade bat (#1656) 2024-03-16 10:24:40 -04:00
Tau
2f76c56d91
Detect Dark/Light Mode from Terminal (#1615) 2024-03-12 11:05:44 -04:00
Dan Davison
8ff5ff46d4
Update git2 (#1647)
Ref #1548
2024-03-04 16:33:09 -05:00
Isaac Whitfield
1db3aaa493
Upgrade bytelines to latest (#1597) 2024-03-02 12:03:20 -05:00
Josh Triplett
037665ba37
Switch from vte to anstyle-parse (already used in dependencies) (#1638)
delta already depends indirectly on anstyle-parse through clap. Switch
from vte to anstyle-parse to eliminate a few dependencies.
2024-03-02 08:35:55 -05:00
plustik
49a99180fe
feat: generate completion subcommand (#1561)
* generate-completion subcommand
* add Makefile target and replace completion scripts in repo with generated output
* Add completion to manual
2023-11-19 10:20:52 -05:00
ippsav
3c55764215
Fix issue where pager would be set to more or most (#1494)
fix pager env in case of `more/most`
2023-07-29 19:25:02 -04:00
Thomas Otto
278cce0e91
Bump clap to v4.3.14 and regenerate Cargo.lock (#1472) 2023-07-17 16:19:44 -05:00
nickelc
915662f5da
Replace usage of the atty crate with std::io::IsTerminal trait (#1465)
Rust 1.70 stabilized the `IsTerminal` trait and the newest version of
`grep-cli` crate depending on it, makes it possible to remove the
unmaintained `atty` crate from the build.

```
Crate:     atty
Version:   0.2.14
Warning:   unsound
Title:     Potential unaligned read
Date:      2021-07-04
ID:        RUSTSEC-2021-0145
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0145
```
2023-07-08 18:00:36 -04:00
Dan Davison
953af74452
Update bat (#1453) 2023-06-21 10:04:32 -04:00
dependabot[bot]
4ab08caf17
Bump serde from 1.0.152 to 1.0.163 (#1415)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.152 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.163)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 12:43:56 -04:00
dependabot[bot]
79e4ba9ba0
Bump serde_json from 1.0.93 to 1.0.96 (#1391)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.93 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.96)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:44:23 -04:00
dependabot[bot]
aa99ea7a49
Bump clap from 4.1.8 to 4.1.14 (#1375)
Bumps [clap](https://github.com/clap-rs/clap) from 4.1.8 to 4.1.14.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.8...v4.1.14)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:44:01 -04:00
dependabot[bot]
e8d4e74c2c
Bump dirs from 4.0.0 to 5.0.1 (#1407)
Bumps [dirs](https://github.com/soc/dirs-rs) from 4.0.0 to 5.0.1.
- [Release notes](https://github.com/soc/dirs-rs/releases)
- [Commits](https://github.com/soc/dirs-rs/commits)

---
updated-dependencies:
- dependency-name: dirs
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:42:04 -04:00
dependabot[bot]
99451ead76
Bump sysinfo from 0.28.2 to 0.29.0 (#1412)
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.28.2 to 0.29.0.
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits)

---
updated-dependencies:
- dependency-name: sysinfo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:41:03 -04:00
dependabot[bot]
09131c8a29
Bump palette from 0.6.1 to 0.7.2 (#1420)
Bumps [palette](https://github.com/Ogeon/palette) from 0.6.1 to 0.7.2.
- [Changelog](https://github.com/Ogeon/palette/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Ogeon/palette/compare/0.6.1...0.7.2)

---
updated-dependencies:
- dependency-name: palette
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:38:59 -04:00
dependabot[bot]
03979ae954
Bump chrono from 0.4.23 to 0.4.26 (#1426)
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.23 to 0.4.26.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.23...v0.4.26)

---
updated-dependencies:
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:38:39 -04:00
dependabot[bot]
1c37bfa85b
Bump git2 from 0.16.1 to 0.17.2 (#1422)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.16.1 to 0.17.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.16.1...0.17.2)

---
updated-dependencies:
- dependency-name: git2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-03 10:38:24 -04:00
Dan Davison
03f1569a9a Bump version 2023-06-03 10:04:09 -04:00
Dan Davison
546607fba3 Bump version 2023-06-02 19:21:43 -04:00
Dan Davison
4cd97cd248 Bump version 2023-06-02 19:15:55 -04:00
Dan Davison
4597dc4c6b Bump versions 2023-06-02 19:08:43 -04:00
Dan Davison
0662638507 Bump version 2023-06-02 18:57:07 -04:00
Dan Davison
52e3c5a536 Bump version in Cargo.lock 2023-06-02 18:43:38 -04:00
nickelc
ce41a39bf6
Replace deprecated error_chain crate with anyhow (#1405)
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-26 15:07:35 -04:00
nickelc
12fd54e7a8
Downgrade and pin the bytelines crate (#1378)
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-26 11:04:15 -04:00
nickelc
3e8d1bc9c4
Update bitflags to 2.2.1 (#1361)
The `Clone`, `Copy`, `Debug` and `PartialEq` traits are no longer
derived automatically by the macro.
2023-04-26 10:59:38 -04:00
nickelc
a8446c53bb
Update dependencies & switch back to the dirs crate (#1325)
* 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-05 15:07:25 -05:00
nickelc
420b1acea1
Update clap to 4.1 (#1322)
* 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-03 06:19:07 -05:00
nickelc
2cd66b58a7
Update git2 to 0.16.1 (#1323) 2023-03-03 05:26:18 -05:00
Dan Davison
62513efc1b Bump version 2022-12-03 15:20:12 -05:00
Dan Davison
df11d18e82 Bump version in Cargo.lock 2022-12-03 07:05:33 -08:00
Marcin Puc
cc0f1dd968
Switch bat to library mode (#1187) 2022-09-13 11:53:47 -04:00
Dan Davison
db0a9cffda Bump version 2022-08-31 16:55:39 -04:00
Dan Davison
f3b6c454b2 Revert "Bump git2 from 0.14.2 to 0.14.4 (#1085)"
This reverts commit 511d501d5e.
2022-07-05 10:23:41 -04:00
Dan Davison
b6e4d90a14
Update clap (#1119) 2022-07-04 18:25:24 -04:00
dependabot[bot]
b0bed17ccb
Bump itertools from 0.10.1 to 0.10.3 (#835)
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.10.1 to 0.10.3.
- [Release notes](https://github.com/rust-itertools/itertools/releases)
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.1...v0.10.3)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-04 12:30:49 -04:00
dependabot[bot]
71a2243278
Bump serde_json from 1.0.70 to 1.0.82 (#1115)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.70 to 1.0.82.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.70...v1.0.82)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-04 12:30:26 -04:00