2018-02-12 16:53:39

by Zhu Lingshan

[permalink] [raw]
Subject: [PATCH v2] .gitignore: ignore ASN.1 auto generated files

when build kernel with default configure, files:

generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c
net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h

will be automatically generated by ASN.1 compiler, so
No need to track them in git, it's better to ignore them.

Signed-off-by: Zhu Lingshan <[email protected]>
---
Changes in v2:
-correct ANS.1 --> ASN.1 in title

.gitignore | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/.gitignore b/.gitignore
index 705e09913dc2..1be78fd8163b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -127,3 +127,7 @@ all.config

# Kdevelop4
*.kdev4
+
+#Automatically generated by ASN.1 compiler
+net/ipv4/netfilter/nf_nat_snmp_basic-asn1.c
+net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h
--
2.13.6



2018-02-14 20:14:24

by Pablo Neira Ayuso

[permalink] [raw]
Subject: Re: [PATCH v2] .gitignore: ignore ASN.1 auto generated files

On Mon, Feb 12, 2018 at 09:45:42PM +0800, Zhu Lingshan wrote:
> when build kernel with default configure, files:
>
> generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c
> net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h
>
> will be automatically generated by ASN.1 compiler, so
> No need to track them in git, it's better to ignore them.

Applied, thanks.