From edca5f2b9f5fd2cd3f029cff2ba88b5ab2bb2d47 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 25 Jun 2023 10:03:05 +0800 Subject: [PATCH] Add Git Hooks --- .gitattributes | 1 + hooks/pre-commit | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .gitattributes create mode 100644 hooks/pre-commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e44ee1f --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +hooks/* eol=lf diff --git a/hooks/pre-commit b/hooks/pre-commit new file mode 100644 index 0000000..7eb8b44 --- /dev/null +++ b/hooks/pre-commit @@ -0,0 +1,2 @@ +#!/bin/sh +deno fmt