Commit graph

2496 commits

Author SHA1 Message Date
extrawurst
a2e86c2ea3
fix cargo wix install (#2644) 2025-05-18 00:48:17 +02:00
dependabot[bot]
7065812c8d
Bump clap from 4.5.37 to 4.5.38 (#2636)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.37 to 4.5.38.
- [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/clap_complete-v4.5.37...clap_complete-v4.5.38)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.38
  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>
2025-05-12 17:49:53 +02:00
dependabot[bot]
d9c199500f
Bump git2 from 0.20.1 to 0.20.2 (#2633)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.20.1 to 0.20.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/compare/git2-0.20.1...git2-0.20.2)

---
updated-dependencies:
- dependency-name: git2
  dependency-version: 0.20.2
  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>
2025-05-06 16:54:44 +02:00
dependabot[bot]
0a09c13a61
Bump openssl-sys from 0.9.107 to 0.9.108 (#2631)
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl) from 0.9.107 to 0.9.108.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.107...openssl-sys-v0.9.108)

---
updated-dependencies:
- dependency-name: openssl-sys
  dependency-version: 0.9.108
  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>
2025-05-01 07:45:00 +02:00
extrawurst
3453e4624d fix nightly 2025-04-30 10:37:38 +02:00
Fatpandac
706cdf9243
feat: file and status tab support pageup and pagedown (#2496) 2025-04-21 20:23:05 +02:00
Lena
ee5c243cbf
Improve error messages (#2617) 2025-04-21 20:22:25 +02:00
dependabot[bot]
ae7b7b0c21
Bump clap from 4.5.36 to 4.5.37 (#2621)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.36 to 4.5.37.
- [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/clap_complete-v4.5.36...clap_complete-v4.5.37)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.37
  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>
2025-04-21 20:20:40 +02:00
extrawurst
1205cd620b Revert "Show cursor on panic (#2620)"
This reverts commit 9056e5e75c.
2025-04-18 10:08:02 +02:00
extrawurst
9271b4116e remove duplicate panic handler 2025-04-18 10:05:23 +02:00
Johannes Agricola
9056e5e75c
Show cursor on panic (#2620)
ratatui::Terminal starts by hiding the cursor. If we panic and abort,
that Terminal instance is not dropped, which leaves restoring the cursor
state to us.

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-18 09:53:25 +02:00
dependabot[bot]
782ec070b4
Bump once_cell from 1.21.1 to 1.21.3 (#2588)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.21.1 to 1.21.3.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.21.1...v1.21.3)

---
updated-dependencies:
- dependency-name: once_cell
  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>
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-04-18 09:32:27 +02:00
Johannes Agricola
baa1822180
Remove some #[allow]s II (#2616)
Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-18 09:29:06 +02:00
Johannes Agricola
e08d954573
Clean up a few #[allow]s (#2614) 2025-04-16 10:45:08 +02:00
Joshix-1
0e3767102a
use gix_path::env::shell() to get the shell in git2-hooks (#2612)
Co-authored-by: Johannes Agricola <naseschwarz@users.noreply.github.com>
2025-04-16 10:41:14 +02:00
Johannes Agricola
7f88934d05
Bump msrv to 1.81 (#2613)
Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-16 09:21:06 +02:00
dependabot[bot]
489918eb51
Bump env_logger from 0.11.6 to 0.11.8 (#2610)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.11.6 to 0.11.8.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.6...v0.11.8)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-version: 0.11.8
  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>
2025-04-16 09:18:43 +02:00
dependabot[bot]
29c8f48bc8
Bump clap from 4.5.35 to 4.5.36 (#2608)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.35 to 4.5.36.
- [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/clap_complete-v4.5.35...clap_complete-v4.5.36)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.36
  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>
2025-04-16 09:18:32 +02:00
Joshix-1
711210b97b
Run git-hooks more correctly (#2483) 2025-04-15 15:01:39 +02:00
extrawurst
9781608584
upgrade dirs (#2569) 2025-04-15 09:22:50 +02:00
dependabot[bot]
7c41e99f98
Bump shellexpand from 3.1.0 to 3.1.1 (#2607)
Bumps [shellexpand](https://gitlab.com/ijackson/rust-shellexpand) from 3.1.0 to 3.1.1.
- [Commits](https://gitlab.com/ijackson/rust-shellexpand/compare/shellexpand-3.1.0...shellexpand-3.1.1)

---
updated-dependencies:
- dependency-name: shellexpand
  dependency-version: 3.1.1
  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>
2025-04-15 08:54:08 +02:00
dependabot[bot]
44d4a8deb1
Bump clap from 4.5.34 to 4.5.35 (#2592)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.34 to 4.5.35.
- [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/clap_complete-v4.5.34...clap_complete-v4.5.35)

---
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>
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-04-14 09:08:25 +02:00
dependabot[bot]
aa513b40e1
Bump ron from 0.9.0 to 0.10.1 (#2601)
Bumps [ron](https://github.com/ron-rs/ron) from 0.9.0 to 0.10.1.
- [Release notes](https://github.com/ron-rs/ron/releases)
- [Changelog](https://github.com/ron-rs/ron/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ron-rs/ron/compare/v0.9.0...v0.10.1)

---
updated-dependencies:
- dependency-name: ron
  dependency-version: 0.10.1
  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>
2025-04-14 09:08:12 +02:00
dependabot[bot]
f67eed9c9d
Bump indexmap from 2.8.0 to 2.9.0 (#2602)
Bumps [indexmap](https://github.com/indexmap-rs/indexmap) from 2.8.0 to 2.9.0.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.8.0...2.9.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-version: 2.9.0
  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>
2025-04-14 09:08:00 +02:00
dependabot[bot]
670b22eacf
Bump struct-patch from 0.9.0 to 0.9.2 (#2604)
Bumps [struct-patch](https://github.com/yanganto/struct-patch) from 0.9.0 to 0.9.2.
- [Release notes](https://github.com/yanganto/struct-patch/releases)
- [Commits](https://github.com/yanganto/struct-patch/compare/v0.9.0...v0.9.2)

---
updated-dependencies:
- dependency-name: struct-patch
  dependency-version: 0.9.2
  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>
2025-04-14 09:07:49 +02:00
dependabot[bot]
741de5fad5
Bump openssl-sys from 0.9.106 to 0.9.107 (#2605)
Bumps [openssl-sys](https://github.com/sfackler/rust-openssl) from 0.9.106 to 0.9.107.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.106...openssl-sys-v0.9.107)

---
updated-dependencies:
- dependency-name: openssl-sys
  dependency-version: 0.9.107
  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>
2025-04-14 09:07:37 +02:00
dependabot[bot]
7804ce7004
Bump anyhow from 1.0.97 to 1.0.98 (#2606)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.97...1.0.98)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-version: 1.0.98
  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>
2025-04-14 09:04:55 +02:00
Peer Sommerlund
313220ae94
Fix #315 run brew test in CI (#2596)
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-04-11 08:44:49 +03:00
extrawurst
e299017e79 crossbeam-channel upgrade 2025-04-11 06:08:26 +03:00
extrawurst
eeebb0a647
fix cargo deny advisory warning (#2598) 2025-04-07 18:02:34 +02:00
extrawurst
cc907996f4
fix latest clippy (#2597) 2025-04-07 16:06:00 +02:00
Johannes Agricola
7f75307f6e
Resolve core.hooksPath relative to GIT_WORK_TREE (#2571)
* Resolve core.hooksPath relative to GIT_WORK_TREE

git supports relative values in core.hooksPath.

`man git-config`:

> A relative path is taken as relative to the directory where the hooks are
> run (see the "DESCRIPTION" section of githooks[5]).

`man githooks`:

> Before Git invokes a hook, it changes its working directory to either
> $GIT_DIR in a bare repository or the root of the working tree in a >
> non-bare repository.

I.e. relative paths in core.hooksPath in non-bare repositories are always
relative to GIT_WORK_TREE.

There is a further exception; I believe this is not considered for path
resolution:

> An exception are hooks triggered during a push (pre-receive, update,
> post-receive, post-update, push-to-checkout) which are always executed
> in $GIT_DIR.

* Favor Repository::workdir() over path().parent()

This more clearly errors in case of bare repositories instead of using
the parent directory of the bare repository.

---------

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-04-04 15:28:44 +02:00
Johannes Agricola
89f73d2ec2
Disable dotted range commit yanking (#2577)
The algorithm for computing marked_consecutive assumes that commits are
consecutive in the commit graph if they are consecutive in the
linearized log used in` commitlist.rs`. That is not universally correct,
as siblings may also be displayed consecutively in this list.

For now, this just removes generating commit lists in dotted range
notation.

Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-04-04 15:27:50 +02:00
dependabot[bot]
156381155e
Bump clap from 4.5.32 to 4.5.34 (#2585)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.32 to 4.5.34.
- [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/clap_complete-v4.5.32...clap_complete-v4.5.34)

---
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>
2025-03-27 13:22:09 +08:00
dependabot[bot]
369ea6a140
Bump struct-patch from 0.8.7 to 0.9.0 (#2583)
Bumps [struct-patch](https://github.com/yanganto/struct-patch) from 0.8.7 to 0.9.0.
- [Release notes](https://github.com/yanganto/struct-patch/releases)
- [Commits](https://github.com/yanganto/struct-patch/compare/v0.8.7...v0.9.0)

---
updated-dependencies:
- dependency-name: struct-patch
  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>
2025-03-26 07:23:23 +01:00
Johannes Agricola
6a884d1388
Consolidate recent theme change docs in THEMES.md (#2575) 2025-03-22 19:43:43 +01:00
Clément
65b57c4b60
feat(ui): Add use_selection_fg flag to control selection foreground color (#2515) 2025-03-22 14:11:54 +01:00
Johannes Agricola
dcd9a00ff3
Check cargo sort in make check (#2572)
This is run in CI, so running this offline avoids an unnecessary CI
failure.
2025-03-22 11:53:03 +01:00
Lena
ad32993721
Support loading custom syntax themes from a file (#2565) 2025-03-20 00:31:09 +01:00
Lena
92ef9f6fde
Respect .mailmap (#2485) 2025-03-19 14:44:02 +01:00
Lena
3ede6b56f1
Set the terminal title to gitui ({repo_path}) (#2484) 2025-03-18 19:23:16 +01:00
extrawurst
5755c096b4 update base64 and ron 2025-03-18 18:59:19 +01:00
vlad-anger
979fa68837
Push with refspec (#2542)
* push: respect `branch.*.merge` when push default is upstream
2025-03-18 18:35:39 +01:00
Johannes Agricola
a91132d187
Bump git2 from 0.20.0 to 0.20.1 (#2567)
* Bump git2 from 0.20.0 to 0.20.1

Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.20.0 to 0.20.1.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/compare/git2-0.20.0...git2-0.20.1)

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

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

* Avoid passing reference into struct

git2-rs changed the lifetime of the result of Patch::hunk() to reference
the patch struct:
https://github.com/rust-lang/git2-rs/pull/1141

Thus, returning a patch struct and a reference into it is flagged by the
borrow checker upon move when returning.

This patch avoids returning both alltogether by separating retrieving
and retrieving the patch.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Naseschwarz <naseschwarz@0x53a.de>
2025-03-18 09:09:11 +01:00
Vasileios Manolopoulos
597e944af9
Select out of the defaults syntect syntax themes in theme.ron (#2532) 2025-03-16 22:06:28 +01:00
Vasley
4031b0d1a7
Change links to point to gitui-org instead of extrawurst (#2538) 2025-03-16 15:33:28 +01:00
Wessam
4ad2c4b271
Dismiss commit msg key (#2563) 2025-03-16 15:32:43 +01:00
Lena
4ccdeed3a2
Add --logfile (#2539)
Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2025-03-16 15:30:02 +01:00
Fatpandac
1f3bd0ff70
add .editorconfig file (#2497)
* chore: add .editorconfig file

* feat: add root config to .editorconfig

Co-authored-by: Johannes Agricola <naseschwarz@users.noreply.github.com>

---------

Co-authored-by: Johannes Agricola <naseschwarz@users.noreply.github.com>
2025-03-16 15:27:31 +01:00
dependabot[bot]
35b2529c52
Bump bitflags from 2.8.0 to 2.9.0 (#2544)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.8.0 to 2.9.0.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/2.8.0...2.9.0)

---
updated-dependencies:
- dependency-name: bitflags
  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>
2025-03-15 10:07:15 +01:00