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

Erik Skultety eskultet at redhat.com
Fri May 24 14:09:24 UTC 2019


On Fri, May 24, 2019 at 10:01:37AM -0400, Cole Robinson wrote:
> 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

Makes sense.

Thanks,
Erik




More information about the virt-tools-list mailing list