diff mbox series

Add *.pyc back to the .gitignore file

Message ID 20200919101859.28739-1-thuth@redhat.com
State New
Headers show
Series Add *.pyc back to the .gitignore file | expand

Commit Message

Thomas Huth Sept. 19, 2020, 10:18 a.m. UTC
Python still dumps its bytecode into the source directory, so
we should continue to ignore the *.pyc files.

Fixes: 0e72b7df4d ("Simplify the .gitignore file")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Philippe Mathieu-Daudé Sept. 19, 2020, 10:46 a.m. UTC | #1
On 9/19/20 12:18 PM, Thomas Huth wrote:
> Python still dumps its bytecode into the source directory, so

> we should continue to ignore the *.pyc files.

> 

> Fixes: 0e72b7df4d ("Simplify the .gitignore file")

> Reported-by: Peter Maydell <peter.maydell@linaro.org>

> Signed-off-by: Thomas Huth <thuth@redhat.com>

> ---

>  .gitignore | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/.gitignore b/.gitignore

> index 5515f595e6..b32bca1315 100644

> --- a/.gitignore

> +++ b/.gitignore

> @@ -1,5 +1,6 @@

>  /GNUmakefile

>  /build/

> +*.pyc

>  .sdk

>  .stgit-*

>  .git-submodule-status

> 


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Laurent Vivier Sept. 23, 2020, 5:10 p.m. UTC | #2
Le 19/09/2020 à 12:18, Thomas Huth a écrit :
> Python still dumps its bytecode into the source directory, so
> we should continue to ignore the *.pyc files.
> 
> Fixes: 0e72b7df4d ("Simplify the .gitignore file")
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 5515f595e6..b32bca1315 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,5 +1,6 @@
>  /GNUmakefile
>  /build/
> +*.pyc
>  .sdk
>  .stgit-*
>  .git-submodule-status
> 

Applied to my trivial-patches branch.

Thanks,
Laurent
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 5515f595e6..b32bca1315 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@ 
 /GNUmakefile
 /build/
+*.pyc
 .sdk
 .stgit-*
 .git-submodule-status