Skip to content

Commit c023441

Browse files
authored
Merge branch 'master' into feat/checkout_method
2 parents 3ffcec7 + 706cdf9 commit c023441

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+941
-476
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
msrv = "1.70.0"
1+
msrv = "1.81.0"
22
cognitive-complexity-threshold = 18

.github/workflows/ci.yml

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
rust: [nightly, stable, '1.70']
20+
rust: [nightly, stable, '1.81']
2121
runs-on: ${{ matrix.os }}
2222
continue-on-error: ${{ matrix.rust == 'nightly' }}
2323

@@ -41,6 +41,9 @@ jobs:
4141
toolchain: ${{ matrix.rust }}
4242
components: clippy
4343

44+
- name: Override rust toolchain
45+
run: rustup override set ${{ matrix.rust }}
46+
4447
- name: Rustup Show
4548
run: rustup show
4649

@@ -89,7 +92,7 @@ jobs:
8992
strategy:
9093
fail-fast: false
9194
matrix:
92-
rust: [nightly, stable, '1.70']
95+
rust: [nightly, stable, '1.81']
9396
continue-on-error: ${{ matrix.rust == 'nightly' }}
9497
steps:
9598
- uses: actions/checkout@v4
@@ -112,6 +115,12 @@ jobs:
112115
- name: Manually install target
113116
run: rustup target add x86_64-unknown-linux-musl
114117

118+
- name: Override rust toolchain
119+
run: rustup override set ${{ matrix.rust }}
120+
121+
- name: Rustup Show
122+
run: rustup show
123+
115124
- name: Setup MUSL
116125
run: |
117126
sudo apt-get -qq install musl-tools
@@ -135,7 +144,7 @@ jobs:
135144
strategy:
136145
fail-fast: false
137146
matrix:
138-
rust: [nightly, stable, '1.70']
147+
rust: [nightly, stable, '1.81']
139148
continue-on-error: ${{ matrix.rust == 'nightly' }}
140149
steps:
141150
- uses: actions/checkout@v4
@@ -151,6 +160,10 @@ jobs:
151160
uses: dtolnay/rust-toolchain@master
152161
with:
153162
toolchain: ${{ matrix.rust }}
163+
164+
- name: Override rust toolchain
165+
run: rustup override set ${{ matrix.rust }}
166+
154167
- name: Setup ARM toolchain
155168
run: |
156169
rustup target add aarch64-unknown-linux-gnu
@@ -166,6 +179,9 @@ jobs:
166179
echo "$GITHUB_WORKSPACE/gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu/bin" >> $GITHUB_PATH
167180
echo "$GITHUB_WORKSPACE/gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf/bin" >> $GITHUB_PATH
168181
182+
- name: Rustup Show
183+
run: rustup show
184+
169185
- name: Build Debug
170186
run: |
171187
make build-linux-arm-debug
@@ -179,7 +195,7 @@ jobs:
179195
strategy:
180196
fail-fast: false
181197
matrix:
182-
rust: [nightly, stable, '1.70']
198+
rust: [nightly, stable, '1.81']
183199
continue-on-error: ${{ matrix.rust == 'nightly' }}
184200
steps:
185201
- uses: actions/checkout@v4
@@ -195,9 +211,16 @@ jobs:
195211
uses: dtolnay/rust-toolchain@master
196212
with:
197213
toolchain: ${{ matrix.rust }}
214+
215+
- name: Override rust toolchain
216+
run: rustup override set ${{ matrix.rust }}
217+
198218
- name: Setup target
199219
run: rustup target add x86_64-apple-darwin
200220

221+
- name: Rustup Show
222+
run: rustup show
223+
201224
- name: Build Debug
202225
run: |
203226
make build-apple-x86-debug
@@ -275,3 +298,31 @@ jobs:
275298
with:
276299
name: release-notes.txt
277300
path: ./release-notes.txt
301+
302+
test-homebrew:
303+
name: Test Homebrew Formula (macOS)
304+
runs-on: macos-latest
305+
steps:
306+
- name: Checkout code
307+
uses: actions/checkout@v4
308+
309+
- name: Install stable Rust
310+
uses: actions-rs/toolchain@v1
311+
with:
312+
toolchain: stable
313+
314+
- name: Install Homebrew
315+
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
316+
317+
- name: Set up Homebrew in PATH
318+
run: |
319+
echo "$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" >> $GITHUB_PATH
320+
321+
- name: Update Homebrew
322+
run: brew update
323+
324+
- name: Let Homebrew build gitui from source
325+
run: brew install --head --build-from-source gitui
326+
327+
- name: Run Homebrew test
328+
run: brew test gitui

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## Unreleased
9+
* execute git-hooks directly if possible (on *nix) else use sh instead of bash (without reading SHELL variable) [[@Joshix](https://github.com/Joshix-1)] ([#2483](https://github.com/extrawurst/gitui/pull/2483))
910

1011
### Added
1112
* support choosing checkout branch method when status is not empty [[@fatpandac](https://github.com/fatpandac)] ([#2404](https://github.com/extrawurst/gitui/issues/2404))
13+
* Files and status tab support pageUp and pageDown [[@fatpandac](https://github.com/fatpandac)] ([#1951](https://github.com/extrawurst/gitui/issues/1951))
1214
* support loading custom syntax highlighting themes from a file [[@acuteenvy](https://github.com/acuteenvy)] ([#2565](https://github.com/gitui-org/gitui/pull/2565))
1315
* Select syntax highlighting theme out of the defaults from syntect [[@vasilismanol](https://github.com/vasilismanol)] ([#1931](https://github.com/extrawurst/gitui/issues/1931))
1416
* new command-line option to override the default log file path (`--logfile`) [[@acuteenvy](https://github.com/acuteenvy)] ([#2539](https://github.com/gitui-org/gitui/pull/2539))
1517
* dx: `make check` checks Cargo.toml dependency ordering using `cargo sort` [[@naseschwarz](https://github.com/naseschwarz)]
1618
* add `use_selection_fg` to theme file to allow customizing selection foreground color [[@Upsylonbare](https://github.com/Upsylonbare)] ([#2515](https://github.com/gitui-org/gitui/pull/2515))
1719

1820
### Changed
21+
* improve error messages [[@acuteenvy](https://github.com/acuteenvy)] ([#2617](https://github.com/gitui-org/gitui/pull/2617))
22+
* increase MSRV from 1.70 to 1.81 [[@naseschwarz](https://github.com/naseschwarz)] ([#2094](https://github.com/gitui-org/gitui/issues/2094))
1923
* improve syntax highlighting file detection [[@acuteenvy](https://github.com/acuteenvy)] ([#2524](https://github.com/extrawurst/gitui/pull/2524))
2024
* Updated project links to point to `gitui-org` instead of `extrawurst` [[@vasleymus](https://github.com/vasleymus)] ([#2538](https://github.com/gitui-org/gitui/pull/2538))
2125
* After commit: jump back to unstaged area [[@tommady](https://github.com/tommady)] ([#2476](https://github.com/extrawurst/gitui/issues/2476))
@@ -25,6 +29,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2529
* set the terminal title to `gitui ({repo_path})` [[@acuteenvy](https://github.com/acuteenvy)] ([#2462](https://github.com/gitui-org/gitui/issues/2462))
2630
* respect `.mailmap` [[@acuteenvy](https://github.com/acuteenvy)] ([#2406](https://github.com/gitui-org/gitui/issues/2406))
2731

32+
### Fixes
33+
* resolve `core.hooksPath` relative to `GIT_WORK_TREE` [[@naseschwarz](https://github.com/naseschwarz)] ([#2571](https://github.com/gitui-org/gitui/issues/2571))
34+
* yanking commit ranges no longer generates incorrect dotted range notations, but lists each individual commit [[@naseschwarz](https://github.com/naseschwarz)] (https://github.com/gitui-org/gitui/issues/2576)
35+
2836
## [0.27.0] - 2024-01-14
2937

3038
**new: manage remotes**

0 commit comments

Comments
 (0)