From 9b8e30f17039f16298e0ca6687514df171298cb2 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 9 Sep 2024 09:29:41 +0300 Subject: [PATCH] .gitattributes: Exclude auto-generated files from diff Signed-off-by: Evgenii Stratonikov --- .gitattributes | 2 ++ Makefile | 1 + 2 files changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c9f8ada --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +rpcclient/*/client.go -diff -merge +rpcclient/*/client.go linguist-generated=true diff --git a/Makefile b/Makefile index e6e6a51..72cb373 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,7 @@ generate-wrapper.%: @# in case we need to override the type of some variables. @# --config $*/$*.bindings.yml @# Unfortunately, primitive integer types are not yet supported. + @# When changing auto-generated path, don't forget to change .gitattributes too. $(NEOGO) contract generate-rpcwrapper --manifest=$*/config.json --out ./rpcclient/$*/client.go generate-wrappers: build $(foreach sc,$(all_sc),generate-wrapper.$(sc))