From: Johannes Sixt <j.sixt@viscovery.net>
To: Stefan Karpinski <stefan.karpinski@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: builtin conversion between tabs and spaces
Date: Wed, 15 Oct 2008 08:26:36 +0200 [thread overview]
Message-ID: <48F58D1C.2040208@viscovery.net> (raw)
In-Reply-To: <d4bc1a2a0810141844x76223e76xf04e07ece834fc61@mail.gmail.com>
Stefan Karpinski schrieb:
> This led me to wonder if it wouldn't make sense to have this
> conversion ability built into git.
This wouldn't help your case a lot. It is still at the discretion of each
individual repository owner to enable the conversion. (You didn't mean to
make this conversion mandatory, did you?)
BTW, you don't need to change git code to achieve this. It's sufficient to
install a suitable "clean" filter:
echo "*.c filter=c-code" > .git/info/attributes
git config filter.c-code.clean tabs2spaces
where tabs2spaces is your utility that does the conversion.
-- Hannes
next prev parent reply other threads:[~2008-10-15 6:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d4bc1a2a0810141839r547a770j3a8e56312afa6a53@mail.gmail.com>
[not found] ` <d4bc1a2a0810141842q1e50c85au7d813f2e5e37a84c@mail.gmail.com>
2008-10-15 1:44 ` builtin conversion between tabs and spaces Stefan Karpinski
2008-10-15 1:47 ` Stefan Karpinski
2008-10-15 6:25 ` Alex Riesen
2008-10-15 20:52 ` Stefan Karpinski
2008-10-15 21:02 ` Jonathan del Strother
2008-10-15 21:18 ` Stefan Karpinski
2008-10-15 23:02 ` Stefan Karpinski
2008-10-15 23:34 ` A Large Angry SCM
2008-10-16 2:00 ` Stefan Karpinski
2008-10-15 6:26 ` Johannes Sixt [this message]
2008-10-15 20:55 ` Stefan Karpinski
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=48F58D1C.2040208@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=stefan.karpinski@gmail.com \
/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).