Skip to content

Commit 1ed7644

Browse files
[pre-commit.ci] pre-commit autoupdate (#122)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-clang-format: v21.1.2 → v22.1.1](pre-commit/mirrors-clang-format@v21.1.2...v22.1.1) - [github.com/astral-sh/ruff-pre-commit: v0.14.0 → v0.15.6](astral-sh/ruff-pre-commit@v0.14.0...v0.15.6) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d9fe9e4 commit 1ed7644

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ repos:
1717
args: ['--py312-plus']
1818

1919
- repo: https://github.com/pre-commit/mirrors-clang-format
20-
rev: v21.1.2
20+
rev: v22.1.1
2121
hooks:
2222
- id: clang-format
2323
args: [--style=file]
2424
exclude_types: [javascript,json]
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.14.0
27+
rev: v0.15.6
2828
hooks:
2929
- id: ruff-check
3030
args: [--fix]

src/subcommand/merge_subcommand.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,10 @@ void merge_subcommand::run()
324324
std::cout << "Already up-to-date" << std::endl;
325325
return;
326326
}
327-
else if (analysis & GIT_MERGE_ANALYSIS_UNBORN
328-
|| (analysis & GIT_MERGE_ANALYSIS_FASTFORWARD
329-
&& !(preference & GIT_MERGE_PREFERENCE_NO_FASTFORWARD)))
327+
else if (
328+
analysis & GIT_MERGE_ANALYSIS_UNBORN
329+
|| (analysis & GIT_MERGE_ANALYSIS_FASTFORWARD && !(preference & GIT_MERGE_PREFERENCE_NO_FASTFORWARD))
330+
)
330331
{
331332
if (analysis & GIT_MERGE_ANALYSIS_UNBORN)
332333
{

0 commit comments

Comments
 (0)