Skip to content

Commit

Permalink
[common] Enable git lfs for known binary formats
Browse files Browse the repository at this point in the history
  • Loading branch information
kszornak authored and gitsgh committed Sep 18, 2024
1 parent 5e56454 commit 18c9f6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Commit everything as LF, but on Windows checkout with CRLF.
* text=auto

# Git tries to detect if a file is a text file, but we can tell it
# explicitly which files are text and which binaries.
# Cygwin (?) man files
Expand Down Expand Up @@ -34,11 +33,10 @@ LICENSE text
NEWS text
README text
TODO text

*.ico binary
*.jpg binary
*.pdf binary
*.png binary
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.pyc binary
*.so binary

*.so filter=lfs diff=lfs merge=lfs -text
*.dll filter=lfs diff=lfs merge=lfs -text
*.lib filter=lfs diff=lfs merge=lfs -text
4 changes: 4 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

You will need:
- [Git](https://git-scm.com/)
- [Git LFS](https://git-lfs.com/)
- A C++ compiler (MSVC on Windows, GCC on Linux; Clang support is planned)
- A build system (Make, Visual Studio, Ninja, etc.)
- [CMake](https://cmake.org/)
Expand All @@ -21,6 +22,9 @@ On Linux you will also need:

## Building

### Install Git LFS
- https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage

### Clone the repo

```bash
Expand Down

0 comments on commit 18c9f6a

Please sign in to comment.