diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-03-07 23:41:07 +0000 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2023-03-08 00:15:02 +0000 |
commit | 8e8281008ee98e9864fa9597be3e16aaecdf9891 (patch) | |
tree | 744f3c9a5a837d1c230adffa4766c016573769e3 /Makefile | |
parent | 9822ad8573e374421a79c096d8f1dfa91366fb02 (diff) | |
download | go-git-8e8281008ee98e9864fa9597be3e16aaecdf9891.tar.gz |
examples: Add example for SHA256 repositories
Add a new example on initializing a new repository with object format SHA256.
A new Makefile target was created to run the example to ensure that new changes
won't break SHA256 support going forwards.
Relates to the SHA256 implementation, defined in #706.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -29,6 +29,12 @@ test: @echo "running against `git version`"; \ $(GOTEST) -race ./... +TEMP_REPO := $(shell mktemp) +test-sha256: + $(GOCMD) run -tags sha256 _examples/sha256/main.go $(TEMP_REPO) + cd $(TEMP_REPO) && git fsck + rm -rf $(TEMP_REPO) + test-coverage: @echo "running against `git version`"; \ echo "" > $(COVERAGE_REPORT); \ |