git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: Benoit Sigoure <tsuna@lrde.epita.fr>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-svn: prevent dcommitting if the index is dirty.
Date: Sat, 17 Nov 2007 12:52:48 -0800	[thread overview]
Message-ID: <20071117205248.GA31598@mayonaise> (raw)
In-Reply-To: <F711CC72-4A91-4B69-B26A-31B0FB6621B0@lrde.epita.fr>

Benoit Sigoure <tsuna@lrde.epita.fr> wrote:
> On Nov 12, 2007, at 3:28 AM, Eric Wong wrote:
> >We use tabs for indentation, and spaces for alignment.
> 
> Yes, sorry again, would you consider to add `# vi: set noexpandtab:'  
> at the end of the file so that ViM users (like me) don't have to  
> think about it?  (it tells ViM to NOT expand tabs to series of spaces)

No, there are still too many cases where the modelines won't apply:
non-VIM users, VIM-users with modelines disabled.

Instead, you can try this in your .vimrc:

augroup filetype
	au BufRead git-svn.perl		set noexpandtab
augroup END

-- 
Eric Wong

      reply	other threads:[~2007-11-17 20:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-11 18:41 [PATCH] git-svn: prevent dcommitting if the index is dirty Benoit Sigoure
2007-11-12  2:28 ` Eric Wong
2007-11-12  9:11   ` Benoit Sigoure
2007-11-17 20:52     ` Eric Wong [this message]

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=20071117205248.GA31598@mayonaise \
    --to=normalperson@yhbt.net \
    --cc=git@vger.kernel.org \
    --cc=tsuna@lrde.epita.fr \
    /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).