forked from libfuse/libfuse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:libfuse/libfuse
- Loading branch information
Showing
40 changed files
with
10,185 additions
and
660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Checkpatch | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
checkpatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y perl | ||
- name: Run checkpatch.pl | ||
run: | | ||
git fetch origin ${{ github.base_ref }} | ||
base_commit=$(git merge-base origin/${{ github.base_ref }} HEAD) | ||
echo "Base commit: $base_commit" | ||
echo "Running checkpatch.pl on all commits in the PR:" | ||
git rev-list --reverse $base_commit..HEAD | while read commit; do | ||
subject=$(git log -1 --format=%s $commit) | ||
echo "Checking commit: $commit - $subject" | ||
if ! ./checkpatch.pl --no-tree --ignore MAINTAINERS,SPDX_LICENSE_TAG,COMMIT_MESSAGE,FILE_PATH_CHANGES,EMAIL_SUBJECT,AVOID_EXTERNS,GIT_COMMIT_ID,ENOSYS_SYSCALL -g $commit; then | ||
echo "checkpatch.pl found issues in commit $commit - $subject" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# check for uneeded header includes of modified files | ||
# False positives can be avoided with | ||
# #include "some_include.h" // IWYU pragma: keep | ||
|
||
name: IWYU Check | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- '**.cpp' | ||
- '**.hpp' | ||
- '**.c' | ||
- '**.h' | ||
|
||
jobs: | ||
iwyu-check: | ||
name: Include What You Use Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install IWYU | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y iwyu | ||
- name: Get changed files | ||
id: changed-files | ||
run: | | ||
git fetch origin ${{ github.base_ref }} | ||
base_commit=$(git merge-base FETCH_HEAD ${{ github.event.pull_request.head.sha }}) | ||
changed_files=$(git diff --name-only $base_commit HEAD | grep -E '\.(cpp|hpp|c|h)$' || true) | ||
echo "files=$changed_files" >> $GITHUB_OUTPUT | ||
- name: Run IWYU checks on changed files | ||
if: steps.changed-files.outputs.files != '' | ||
run: | | ||
echo "${{ steps.changed-files.outputs.files }}" | while read -r file; do | ||
if [ -f "$file" ]; then | ||
echo "Checking $file..." | ||
iwyu -Xiwyu --mapping_file=iwyu.imp "$file" 2>&1 || true | ||
fi | ||
done | tee iwyu_output.txt | ||
if grep -q "should add these lines:" iwyu_output.txt || \ | ||
grep -q "should remove these lines:" iwyu_output.txt; then | ||
echo "IWYU checks failed. Please fix the includes in the affected files." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,3 +231,31 @@ Yuri Per <[email protected]> | |
Zhansong Gao <[email protected]> | ||
Zhiqiang Liu <[email protected]> | ||
zsugabubus <[email protected]> | ||
|
||
# New authors since fuse-3.16.2 | ||
farlongsignal <[email protected]> | ||
yangyun50 <[email protected]> | ||
bigbrotherwei <[email protected]> | ||
Caian Benedicto <[email protected]> | ||
desertwitch <[email protected]> | ||
SteveYang <[email protected]> | ||
FredyVia <[email protected]> | ||
legezywzh <[email protected]> | ||
CismonX <[email protected]> | ||
amitgeron <[email protected]> | ||
Bernd Schubert <[email protected]> | ||
Daniel Rosenberg <[email protected]> | ||
Horst Birthelmer <[email protected]> | ||
Joanne Koong <[email protected]> | ||
Josef Bacik <[email protected]> | ||
Matthew <[email protected]> | ||
gandalfs_cat <[email protected]> | ||
MJ Harvey <[email protected]> | ||
Nils <[email protected]> | ||
Norman Wilson <[email protected]> | ||
leipeng <[email protected]> | ||
Vladimir Serbinenko <[email protected]> | ||
George Hilliard <[email protected]> | ||
Tyler Hall <[email protected]> | ||
yangyun <[email protected]> | ||
Abhishek <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.