forked from cake-contrib/Cake.Issues
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cake-contrib#119 from pascalberger/feature/gitrepo…
…-rules (cake-contribGH-118) Add documentation for Cake.Issues.GitRepository rules
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
input/docs/issue-providers/gitrepository/rules/BinaryFileNotTrackedByLfs.md
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,27 @@ | ||
--- | ||
Title: BinaryFileNotTrackedByLfs | ||
Description: A binary file is not tracked by Git LFS. | ||
--- | ||
|
||
<?# Table Class=table HeaderRows=0 ?> | ||
<?* | ||
"Rule Id" BinaryFileNotTrackedByLfs | ||
Priority Warning | ||
?> | ||
<?#/ Table ?> | ||
|
||
## Cause | ||
|
||
A binary file in the repository is not tracked by [Git Large File System]. | ||
|
||
## Rule description | ||
|
||
By its nature Git repositories cannot handle binary files well and will keep a full copy of that file in the repository every time a change to that file is committed. | ||
Considering that you always clone the full history of a repository, and not only the latest version, using binary files in a repository considerably slow downs the operation. | ||
[Git Large File System] replaces large files with small text pointers inside the Git repository, while storing the file contents on a remote server. | ||
|
||
## How to fix violations | ||
|
||
Track the file with [Git Large File System]. | ||
|
||
[Git Large File System]: https://git-lfs.github.com/ |
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,7 @@ | ||
--- | ||
Title: Rules | ||
Description: Rules of the Cake.Issues.GitRepository provider. | ||
--- | ||
<p>@Html.Raw(Model.String(DocsKeys.Description))</p> | ||
|
||
@Html.Partial("_ChildPages") |