[virt-tools-list] [virt-manager PATCH] gitignore: Ignore vim swap files

Cole Robinson crobinso at redhat.com
Fri May 24 14:01:37 UTC 2019


On 5/24/19 8:22 AM, Erik Skultety wrote:
> The pattern isn't tailored to catch .swp only, as vim will continue
> creating .swo, .swn, etc. going backwards in alphabet once an existing
> swap file already exists.
> 
> Signed-off-by: Erik Skultety <eskultet at redhat.com>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index dd2404e0..677d4350 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,6 +1,7 @@
>  *~
>  *.pyc
>  *.gmo
> +*.sw?
> 
>  /build
>  /dist

IMO it's better to have editor specific bits in a personal global
gitignore file:

https://help.github.com/en/articles/ignoring-files

Mine has stuff like vim output and cscope/ctags output, because they
aren't project specific

Thanks,
Cole




More information about the virt-tools-list mailing list