From 604627626e520912c9ac0a142a6b6b015e5e8625 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 18 Jan 2024 18:52:33 -0500 Subject: [PATCH] Makefile: only track src folder in review --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bceb4c4..e4d2a91 100644 --- a/Makefile +++ b/Makefile @@ -24,12 +24,15 @@ review: git -C $(TEMP_REPO) reset --hard 'HEAD^1' # Fetch files for BASE_REF cd $(TEMP_REPO) && CARGO_HOME=$(TEMP_REPO)/cargo-home cargo fetch + echo "cargo-home/registry/cache" >> $(TEMP_REPO)/.gitignore + echo "cargo-home/registry/index" >> $(TEMP_REPO)/.gitignore + echo "cargo-home/registry/CACHEDIR.TAG" >> $(TEMP_REPO)/.gitignore git -C $(TEMP_REPO) add . git -C $(TEMP_REPO) commit --no-gpg-sign -m "base ref: $(BASE_REF)" # git -C $(TEMP_REPO) ls-files -z | (cd $(TEMP_REPO); xargs -0 -n1 rm) git -C $(TEMP_REPO) fetch origin $(HEAD_REF_PARSED) git -C $(TEMP_REPO) merge --no-commit $(HEAD_REF_PARSED) - rm -rf $(TEMP_REPO)/cargo-home + rm -rf $(TEMP_REPO)/cargo-home/registry/src # Fetch files for HEAD_REF cd $(TEMP_REPO) && CARGO_HOME=$(TEMP_REPO)/cargo-home cargo fetch git -C $(TEMP_REPO) add -A .