From 743f1356d4bf7b148c6a79ffc8906eb4ace98884 Mon Sep 17 00:00:00 2001 From: Gregor Best <gbe@unobtanium.de> Date: Fri, 16 Apr 2021 00:19:55 +0200 Subject: [PATCH] Don't watch .git folder when running rebuild loop Otherwise, starting a git commit will quit the loop because `entr` thinks a folder it watched changed. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3195d64..127c2ba 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ run: - find . | entr -d -r go run . + find . ! -path './.git/*' ! -name .git ! -name . | entr -d -r go run . -- GitLab