mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
Kernel: Split the Ext2FileSystem.{cpp,h} files into smaller components
This commit is contained in:
parent
1c91881a1d
commit
3cc0d60141
15 changed files with 845 additions and 802 deletions
|
@ -26,7 +26,7 @@ done < <(
|
|||
'*.cpp' \
|
||||
'*.h' \
|
||||
'*.in' \
|
||||
':!:Kernel/FileSystem/ext2_fs.h'
|
||||
':!:Kernel/FileSystem/Ext2FS/Definitions.h'
|
||||
else
|
||||
# We're in the middle of a pre-commit run, so we should only check the files that have
|
||||
# actually changed. The reason is that "git ls-files | grep" on the entire repo takes
|
||||
|
@ -34,7 +34,7 @@ done < <(
|
|||
# pre-commit hook. It is unnecessary to check the entire repository on every single
|
||||
# commit, so we save some time here.
|
||||
for file in "$@"; do
|
||||
if [[ ("${file}" =~ \.cpp || "${file}" =~ \.h || "${file}" =~ \.in) && ! "${file}" == "Kernel/FileSystem/ext2_fs.h" ]]; then
|
||||
if [[ ("${file}" =~ \.cpp || "${file}" =~ \.h || "${file}" =~ \.in) ]]; then
|
||||
echo "$file"
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -18,7 +18,7 @@ def should_check_file(filename):
|
|||
return False
|
||||
if filename.startswith('Userland/Libraries/LibCpp/Tests/preprocessor/'):
|
||||
return False
|
||||
if filename == 'Kernel/FileSystem/ext2_fs.h':
|
||||
if filename == 'Kernel/FileSystem/Ext2FS/Definitions.h':
|
||||
return False
|
||||
if filename.endswith('.txt'):
|
||||
return 'CMake' in filename
|
||||
|
|
|
@ -44,7 +44,7 @@ def should_check_file(filename):
|
|||
return False
|
||||
if filename.startswith('Base/'):
|
||||
return False
|
||||
if filename == 'Kernel/FileSystem/ext2_fs.h':
|
||||
if filename == 'Kernel/FileSystem/Ext2FS/Definitions.h':
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ if [ "$#" -eq "1" ]; then
|
|||
'*.cpp' \
|
||||
'*.h' \
|
||||
':!:Base' \
|
||||
':!:Kernel/FileSystem/ext2_fs.h' \
|
||||
':!:Kernel/FileSystem/Ext2FS/Definitions.h' \
|
||||
':!:Userland/Libraries/LibCodeComprehension/Cpp/Tests/*' \
|
||||
':!:Userland/Libraries/LibCpp/Tests/parser/*' \
|
||||
':!:Userland/Libraries/LibCpp/Tests/preprocessor/*'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue