Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Pfeifer
CMake
Commits
2256c3a7
Commit
2256c3a7
authored
8 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
Define a custom Git attribute to mark source files as generated
parent
f45e3b95
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+4
-0
4 additions, 0 deletions
.gitattributes
Source/.gitattributes
+17
-10
17 additions, 10 deletions
Source/.gitattributes
with
21 additions
and
10 deletions
.gitattributes
+
4
−
0
View file @
2256c3a7
.gitattributes export-ignore
.hooks* export-ignore
# Custom attribute to mark sources as generated.
# Do not perform whitespace checks.
[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab
bootstrap crlf=input
configure crlf=input
*.[1-9] crlf=input
...
...
This diff is collapsed.
Click to expand it.
Source/.gitattributes
+
17
−
10
View file @
2256c3a7
# Preserve indentation style in generated code.
cmCommandArgumentLexer.cxx whitespace=-tab-in-indent,-indent-with-non-tab
cmCommandArgumentLexer.h whitespace=-tab-in-indent,-indent-with-non-tab
cmDependsJavaLexer.cxx whitespace=-tab-in-indent,-indent-with-non-tab
cmDependsJavaLexer.h whitespace=-tab-in-indent,-indent-with-non-tab
cmExprLexer.cxx whitespace=-tab-in-indent,-indent-with-non-tab
cmExprLexer.h whitespace=-tab-in-indent,-indent-with-non-tab
cmFortranLexer.cxx whitespace=-tab-in-indent,-indent-with-non-tab
cmFortranLexer.h whitespace=-tab-in-indent,-indent-with-non-tab
cmListFileLexer.c whitespace=-tab-in-indent,-indent-with-non-tab
/cmCommandArgumentLexer.cxx generated
/cmCommandArgumentLexer.h generated
/cmCommandArgumentParser.cxx generated
/cmCommandArgumentParserTokens.h generated
/cmDependsJavaLexer.cxx generated
/cmDependsJavaLexer.h generated
/cmDependsJavaParser.cxx generated
/cmDependsJavaParserTokens.h generated
/cmExprLexer.cxx generated
/cmExprLexer.h generated
/cmExprParser.cxx generated
/cmExprParserTokens.h generated
/cmFortranLexer.cxx generated
/cmFortranLexer.h generated
/cmFortranParser.cxx generated
/cmFortranParserTokens.h generated
/cmListFileLexer.c generated
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment