diff mbox series

[1/4] gitignore: ignore .vscode directory

Message ID 20190513134714.3124-2-wei.liu2@citrix.com (mailing list archive)
State Superseded
Headers show
Series Misc patches | expand

Commit Message

Wei Liu May 13, 2019, 1:47 p.m. UTC
The directory is created by Visual Studio Code editor to store its
local state.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Anthony PERARD May 13, 2019, 2:13 p.m. UTC | #1
On Mon, May 13, 2019 at 02:47:11PM +0100, Wei Liu wrote:
> The directory is created by Visual Studio Code editor to store its
> local state.
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 26bc583f74..3822bb75ba 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -30,6 +30,7 @@ cscope.out
>  cscope.po.out
>  .config
>  .vimrc
> +.vscode

Shouldn't this go in "~/.config/git/ignore" instead? Or whatever `git
config core.excludesFile` point to.

`git help ignore` for more detail.
Wei Liu May 13, 2019, 2:16 p.m. UTC | #2
On Mon, May 13, 2019 at 03:13:06PM +0100, Anthony PERARD wrote:
> On Mon, May 13, 2019 at 02:47:11PM +0100, Wei Liu wrote:
> > The directory is created by Visual Studio Code editor to store its
> > local state.
> > 
> > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > ---
> >  .gitignore | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/.gitignore b/.gitignore
> > index 26bc583f74..3822bb75ba 100644
> > --- a/.gitignore
> > +++ b/.gitignore
> > @@ -30,6 +30,7 @@ cscope.out
> >  cscope.po.out
> >  .config
> >  .vimrc
> > +.vscode
> 
> Shouldn't this go in "~/.config/git/ignore" instead? Or whatever `git
> config core.excludesFile` point to.
> 
> `git help ignore` for more detail.

We already put a bunch of files for various tools in xen.git's
gitignore. I don't see why this can't be done for vscode.

Wei.

> 
> -- 
> Anthony PERARD
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 26bc583f74..3822bb75ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,6 +30,7 @@  cscope.out
 cscope.po.out
 .config
 .vimrc
+.vscode
 
 dist
 stubdom/*.tar.gz