git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-svn: prevent dcommitting if the index is dirty.

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 17, 2007, 20:52 UTC
Message-ID
<20071117205248.GA31598@mayonaise>
In-Reply-To
<F711CC72-4A91-4B69-B26A-31B0FB6621B0@lrde.epita.fr>
Benoit Sigoure <tsuna@lrde.epita.fr> wrote:
Show 6 quoted lines
> 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
Previous: Benoit Sigoure
Message 4 of 4 in “git-svn: prevent dcommitting if the index is dirty.”
  1. git-svn: prevent dcommitting if the index is dirty.Benoit Sigoure, Nov 11, 2007
  2. Eric WongNov 12, 2007
  3. Benoit SigoureNov 12, 2007
  4. Eric WongNov 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.