From d5e8e0ad3d768dec9807e99428868e22051791cb Mon Sep 17 00:00:00 2001 From: Austin Traver Date: Wed, 12 May 2021 00:01:47 -0700 Subject: [PATCH] Migrate images to Git LFS --- .gitattributes | 1 + .hooks/post-checkout | 3 +++ .hooks/post-commit | 3 +++ .hooks/post-merge | 3 +++ .hooks/pre-push | 3 +++ 5 files changed, 13 insertions(+) create mode 100644 .gitattributes create mode 100755 .hooks/post-checkout create mode 100755 .hooks/post-commit create mode 100755 .hooks/post-merge create mode 100755 .hooks/pre-push diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..24a8e879 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/.hooks/post-checkout b/.hooks/post-checkout new file mode 100755 index 00000000..cab40f26 --- /dev/null +++ b/.hooks/post-checkout @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\n"; exit 2; } +git lfs post-checkout "$@" diff --git a/.hooks/post-commit b/.hooks/post-commit new file mode 100755 index 00000000..9443f416 --- /dev/null +++ b/.hooks/post-commit @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.\n"; exit 2; } +git lfs post-commit "$@" diff --git a/.hooks/post-merge b/.hooks/post-merge new file mode 100755 index 00000000..828b7089 --- /dev/null +++ b/.hooks/post-merge @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\n"; exit 2; } +git lfs post-merge "$@" diff --git a/.hooks/pre-push b/.hooks/pre-push new file mode 100755 index 00000000..81a9cc63 --- /dev/null +++ b/.hooks/pre-push @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.\n"; exit 2; } +git lfs pre-push "$@"