Re: [PATCH] Documentation/CodingStyle: Use directory-local variables for emacs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/5/19 11:58 AM, Alison Chaiken wrote:
On 2019-01-04 14:39, Bart Van Assche wrote:
As a general comment, I personally think that it worth to mention the fact that the user can take this code (actually part of it) and put it in a .dir-
locals.el file in the top-level directory.

I'm not sure we should recommend this. Settings in ~/.emacs are not affected
by git clean -f -x but .dir-locals.el is removed by that command.

Why not add the file to .gitignore, possibly in a separate patch?

Hi Alison,

I think that git clean -f -x also removes files specified in .gitignore. From the git-clean man page:

  -x
     Don't use the standard ignore rules read from .gitignore (per
     directory) and $GIT_DIR/info/exclude, but do still use the ignore
     rules given with -e options. This allows removing all untracked
     files, including build products. This can be used (possibly in
     conjunction with git reset) to create a pristine working directory
     to test a clean build.

Bart.



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux