Skip to content

Commit

Permalink
Merge pull request cake-contrib#119 from pascalberger/feature/gitrepo…
Browse files Browse the repository at this point in the history
…-rules

(cake-contribGH-118) Add documentation for Cake.Issues.GitRepository rules
  • Loading branch information
pascalberger authored Jul 31, 2019
2 parents ed777a1 + 659f4c7 commit 074cff4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
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/
7 changes: 7 additions & 0 deletions input/docs/issue-providers/gitrepository/rules/index.cshtml
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")

0 comments on commit 074cff4

Please sign in to comment.