diff mbox

[v10,1/3] gitignore: add local vimrc files

Message ID 1504705706-4859-2-git-send-email-ppircalabu@bitdefender.com (mailing list archive)
State New, archived
Headers show

Commit Message

Petre Ovidiu PIRCALABU Sept. 6, 2017, 1:48 p.m. UTC
Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Wei Liu Sept. 7, 2017, 2:59 p.m. UTC | #1
OOI how does this work?

You put a .vimrc under xen.git?

On Wed, Sep 06, 2017 at 04:48:24PM +0300, Petre Pircalabu wrote:
> Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 594ffd9..8af9c02 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -27,6 +27,7 @@ cscope.in.out
>  cscope.out
>  cscope.po.out
>  .config
> +.vimrc
>  
>  dist
>  stubdom/*.tar.gz
> -- 
> 2.7.4
>
Petre Ovidiu PIRCALABU Sept. 7, 2017, 3:36 p.m. UTC | #2
On Jo, 2017-09-07 at 15:59 +0100, Wei Liu wrote:
> OOI how does this work?

>

> You put a .vimrc under xen.git?

I haven't added the file to the repository, just to .gitignore in order
to mask it from git. It will help me very much to have it upstream
because right now I have to cherry-pick it each time I create a local
branch.
I'm using neovim and 'MarcWeber/vim-addon-local-vimrc'. My local .vimrc
is quite simple, just sets the alignment, tabs and tabspace according
to the xen coding standard.

//Petre
>

> On Wed, Sep 06, 2017 at 04:48:24PM +0300, Petre Pircalabu wrote:

> >

> > Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com>

> > ---

> >  .gitignore | 1 +

> >  1 file changed, 1 insertion(+)

> >

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

> > index 594ffd9..8af9c02 100644

> > --- a/.gitignore

> > +++ b/.gitignore

> > @@ -27,6 +27,7 @@ cscope.in.out

> >  cscope.out

> >  cscope.po.out

> >  .config

> > +.vimrc

> >

> >  dist

> >  stubdom/*.tar.gz


________________________
This email was scanned by Bitdefender
Wei Liu Sept. 7, 2017, 3:41 p.m. UTC | #3
On Thu, Sep 07, 2017 at 03:36:00PM +0000, Petre Ovidiu PIRCALABU wrote:
> On Jo, 2017-09-07 at 15:59 +0100, Wei Liu wrote:
> > OOI how does this work?
> >
> > You put a .vimrc under xen.git?
> I haven't added the file to the repository, just to .gitignore in order
> to mask it from git. It will help me very much to have it upstream
> because right now I have to cherry-pick it each time I create a local
> branch.
> I'm using neovim and 'MarcWeber/vim-addon-local-vimrc'. My local .vimrc
> is quite simple, just sets the alignment, tabs and tabspace according
> to the xen coding standard.
> 

Thanks for the pointer.

I have no objection to this patch. Adding a new entry in .gitignore
which makes developers' life easier is a clear win to me.

Acked-by: Wei Liu <wei.liu2@citrix.com>

> //Petre
> >
> > On Wed, Sep 06, 2017 at 04:48:24PM +0300, Petre Pircalabu wrote:
> > >
> > > Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com>
> > > ---
> > >  .gitignore | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/.gitignore b/.gitignore
> > > index 594ffd9..8af9c02 100644
> > > --- a/.gitignore
> > > +++ b/.gitignore
> > > @@ -27,6 +27,7 @@ cscope.in.out
> > >  cscope.out
> > >  cscope.po.out
> > >  .config
> > > +.vimrc
> > >
> > >  dist
> > >  stubdom/*.tar.gz
> 
> ________________________
> This email was scanned by Bitdefender
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> https://lists.xen.org/xen-devel
Ian Jackson Sept. 7, 2017, 4:12 p.m. UTC | #4
Petre Ovidiu PIRCALABU writes ("Re: [PATCH v10 1/3] gitignore: add local vimrc files"):
> On Jo, 2017-09-07 at 15:59 +0100, Wei Liu wrote:
> > OOI how does this work?
...
> I haven't added the file to the repository, just to .gitignore in order
> to mask it from git. It will help me very much to have it upstream
> because right now I have to cherry-pick it each time I create a local
> branch.
> I'm using neovim and 'MarcWeber/vim-addon-local-vimrc'. My local .vimrc
> is quite simple, just sets the alignment, tabs and tabspace according
> to the xen coding standard.

Why don't you put the .vimrc in your .. ?

Ian.
Petre Ovidiu PIRCALABU Sept. 7, 2017, 5:15 p.m. UTC | #5
On Jo, 2017-09-07 at 17:12 +0100, Ian Jackson wrote:
> Petre Ovidiu PIRCALABU writes ("Re: [PATCH v10 1/3] gitignore: add

> local vimrc files"):

> > 

> > On Jo, 2017-09-07 at 15:59 +0100, Wei Liu wrote:

> > > 

> > > OOI how does this work?

> ...

> > 

> > I haven't added the file to the repository, just to .gitignore in

> > order

> > to mask it from git. It will help me very much to have it upstream

> > because right now I have to cherry-pick it each time I create a

> > local

> > branch.

> > I'm using neovim and 'MarcWeber/vim-addon-local-vimrc'. My local

> > .vimrc

> > is quite simple, just sets the alignment, tabs and tabspace

> > according

> > to the xen coding standard.

> Why don't you put the .vimrc in your .. ?

> 

> Ian.

> 

My current directory layout is a "work" directory which contains
various projects (with different coding standards). Using "per-
directory" settings in my global .vimrc is possible but personally I
prefer using a local .vimrc which is easier to manage & migrate.

//Petre
> ________________________

> This email was scanned by Bitdefender
diff mbox

Patch

diff --git a/.gitignore b/.gitignore
index 594ffd9..8af9c02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,6 +27,7 @@  cscope.in.out
 cscope.out
 cscope.po.out
 .config
+.vimrc
 
 dist
 stubdom/*.tar.gz