From: "Torsten Bögershausen" <tboegi@web.de>
To: "Cameron Taggart" <cameron.taggart@gmail.com>,
git@vger.kernel.org,
"\"tb >> Torsten Bögershausen\"" <tboegi@web.de>
Subject: Re: feature request: text=input option in .gitattributes
Date: Wed, 12 Feb 2014 16:56:21 +0100 [thread overview]
Message-ID: <52FB99A5.9040607@web.de> (raw)
In-Reply-To: <CAABik=sZowhZ4hMi6R=KQHWT_FGBJ9iXJEjtX26wueCzjEQL7w@mail.gmail.com>
On 2014-02-11 15.57, Cameron Taggart wrote:
> After requesting this as
> https://github.com/msysgit/msysgit/issues/164, I was told to take it
> upstream, so here I am.
>
> I would like a text=input feature added that has the same behavior as
> text=auto, except that it defaults to core.autocrlf=input behavior
> instead of core.autocrlf=true.
If you want to normailze your repo, and keep it normalized,
I can recommend to use .gitattributes.
Please see the excellent page here:
https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
And especially this part:
$ echo "* text=auto" >>.gitattributes
$ rm .git/index # Remove the index to force git to
$ git reset # re-scan the working directory
$ git status # Show files that will be normalized
$ git add -u
$ git add .gitattributes
$ git commit -m "Introduce end-of-line normalization"
/Torsten
next prev parent reply other threads:[~2014-02-12 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 14:57 feature request: text=input option in .gitattributes Cameron Taggart
2014-02-12 15:56 ` Torsten Bögershausen [this message]
2014-02-13 3:05 ` Cameron Taggart
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=52FB99A5.9040607@web.de \
--to=tboegi@web.de \
--cc=cameron.taggart@gmail.com \
--cc=git@vger.kernel.org \
/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).