[PATCH] tools/counter: Add .gitignore

Rong Tao posted 1 patch 2 years, 7 months ago
There is a newer version of this series
tools/counter/.gitignore | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 tools/counter/.gitignore
[PATCH] tools/counter: Add .gitignore
Posted by Rong Tao 2 years, 7 months ago
From: Rong Tao <rongtao@cestc.cn>

Ignore counter_example and include directory.

Signed-off-by: Rong Tao <rongtao@cestc.cn>
---
 tools/counter/.gitignore | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 tools/counter/.gitignore

diff --git a/tools/counter/.gitignore b/tools/counter/.gitignore
new file mode 100644
index 000000000000..e1f34db02a91
--- /dev/null
+++ b/tools/counter/.gitignore
@@ -0,0 +1,2 @@
+/counter_example
+/include/
-- 
2.39.1
Re: [PATCH] tools/counter: Add .gitignore
Posted by William Breathitt Gray 2 years, 7 months ago
On Fri, Apr 21, 2023 at 07:52:52PM +0800, Rong Tao wrote:
> From: Rong Tao <rongtao@cestc.cn>
> 
> Ignore counter_example and include directory.
> 
> Signed-off-by: Rong Tao <rongtao@cestc.cn>
> ---
>  tools/counter/.gitignore | 2 ++
>  1 file changed, 2 insertions(+)
>  create mode 100644 tools/counter/.gitignore
> 
> diff --git a/tools/counter/.gitignore b/tools/counter/.gitignore
> new file mode 100644
> index 000000000000..e1f34db02a91
> --- /dev/null
> +++ b/tools/counter/.gitignore
> @@ -0,0 +1,2 @@
> +/counter_example
> +/include/

In the future, we may want to track files in the include directory.
Instead, have .gitignore explicitly ignore the files we're not tracking
(i.e. /include/linux/counter.h).

William Breathitt Gray

> -- 
> 2.39.1
>