From 9534e89c796edb8b7c0e8197c7e4ddca149d9526 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 29 Jul 2020 12:53:57 +0200 Subject: all: mark auto-generated files Use the standard Go convention for Go files: https://golang.org/pkg/cmd/go/internal/generate Use github linguish for other files: https://github.com/github/linguist#generated-code Both are understood by github and should result in these files being collapsed in PRs by default. --- pkg/csource/gen.go | 2 +- pkg/csource/generated.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/csource') diff --git a/pkg/csource/gen.go b/pkg/csource/gen.go index cc96d60c8..efdf6bb82 100644 --- a/pkg/csource/gen.go +++ b/pkg/csource/gen.go @@ -53,7 +53,7 @@ func main() { } { data = regexp.MustCompile(remove).ReplaceAll(data, nil) } - fmt.Fprintf(out, "// AUTOGENERATED FILE FROM executor/*.h\n\n") + fmt.Fprintf(out, "// Code generated by gen.go from executor/*.h. DO NOT EDIT.\n\n") fmt.Fprintf(out, "package csource\n\nvar commonHeader = `\n") out.Write(data) fmt.Fprintf(out, "`\n") diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index b8fad4fba..3c25c2570 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -1,4 +1,4 @@ -// AUTOGENERATED FILE FROM executor/*.h +// Code generated by gen.go from executor/*.h. DO NOT EDIT. package csource -- cgit mrf-deployment