qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] gitignore: Ignore vim per-project config and clang complete
Date: Fri, 2 Jun 2017 09:57:40 -0500	[thread overview]
Message-ID: <936f8428-8ee1-17a3-a94d-1a9237ad5dc7@redhat.com> (raw)
In-Reply-To: <20170602040838.29995-1-quwenruo@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

On 06/01/2017 11:08 PM, Qu Wenruo wrote:
> Since we have already ignored ctags, ignoring .clangcomplete for
> vim-clang_completion is quite reasonable for me.
> (Not to mention vim-clang_completion provides better and more accurate
> completion and definition search)
> 
> Also, qemu coding style is using 4 space as indent other than 8-space
> tab, it also makes sense to ignore per-project vim config file.

We already have a per-project emacs config file (.dir-locals.el); I
think it would be a better idea if you were to propose adding an
appropriate .vim* file for inclusion in the project that makes vim work
out-of-the-box with correct settings, rather than masking the file as
unaddable and requiring all vim-using contributors to recreate the same
settings.  (But as I am not personally a vim user, I can neither provide
such a sample file myself, nor review one if you post it).

> 
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
> ---
>  .gitignore | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 55a001e3b8..c7c6eec0b6 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -113,6 +113,8 @@
>  cscope.*
>  tags
>  TAGS
> +.vim*
> +.clang_complete

The idea of adding .clang_complete to the exclusions makes sense to me.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2017-06-02 14:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-02  4:08 [Qemu-devel] [PATCH] gitignore: Ignore vim per-project config and clang complete Qu Wenruo
2017-06-02 14:57 ` Eric Blake [this message]
2017-06-05  0:45   ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=936f8428-8ee1-17a3-a94d-1a9237ad5dc7@redhat.com \
    --to=eblake@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quwenruo@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).