Re: [PATCH 1/9] contrib: add a script to initialize VS Code configuration
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 30, 2018, 14:42 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1807301635020.10478@tvgsbejvaqbjf.bet>
- In-Reply-To
- <xmqq1sbt68ec.fsf@gitster-ct.c.googlers.com>
Hi Junio,
On Mon, 23 Jul 2018, Junio C Hamano wrote:
Show 14 quoted lines
> "Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> > writes: > > > diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh > > new file mode 100755 > > index 000000000..3cc93243f > > --- /dev/null > > +++ b/contrib/vscode/init.sh > > @@ -0,0 +1,165 @@ > > +#!/bin/sh > > This is caued by our usual "git apply --whitespace=warn" as it > contains lines indented by spaces not tabs (perhaps the json > literals?)
A `git diff --check` does not show any red flag.
> Can we have contrib/vscode/.gitattributes to tweak the whitespace > breakage checking rules so that this file is excempt?
I would have appreciated quite a bit more clear a message, including how I can trigger this, and what is the appropriate setting.
As it is, I cannot reproduce your problem with a `git show`, so I assume that the main problem is that this commit *does* add that .gitattributes, but of course your `git apply` ran before that file existed.
For your own pleasure, here is the link to the .gitattributes file in the commit that you applied yourself:
https://github.com/gitster/git/commit/44559f0388a4e256bea3eb2f57b92a2b9e3d06f9#diff-046ba41c5a21694c62b8dc5e93d7f0c2R1
I assume that this is good enough for you, and your comment is moot?
Ciao, Dscho