From: Jonathan Nieder <jrnieder@gmail.com>
To: "Henrik Grubbström" <grubba@roxen.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH v4 0/5] Patches to avoid reporting conversion changes.
Date: Fri, 4 Jun 2010 14:42:01 -0500 [thread overview]
Message-ID: <20100604194201.GB21492@progeny.tock> (raw)
In-Reply-To: <Pine.GSO.4.63.1006041212200.27465@shipon.roxen.com>
Henrik Grubbström wrote:
> On Thu, 3 Jun 2010, Jonathan Nieder wrote:
>> If you wait for some
>> real change to piggy-back onto, on the other hand, then the per-file
>> normalization patches will make it hard to find what changed.
>
> This seems more like an argument against repositories where
> renormalizations have occurred, than against the feature as such.
No, it is an argument against making the process of renormalization
more painful than it has to be (and against piggy-backing in general).
It is kindest to have a flag day and yank the carriage returns off all
at once like a bandage.
> Well, diff and blame would be confused by a crlf renormalization
> regardless of whether the renormalization was piggy-backed or not.
Only if they cross the revision where renormalization occurred.
> I did do an experiment with a .gitattributes file like:
>
> *.c crlf ident
> [attr]foreign_ident -ident block_commit=Remove-foreign_ident-attribute-before-commit.
> # A list of files that haven't been changed since import follows.
> /foo.c foreign_ident
> /bar.c foreign_ident
> # etc
This looks more sane. Ident strings usually touch only a few lines.
> there were two problems in addition to the long
> list of files in the .gitattributes file:
>
> * The attributes file parsing was broken (recently fixed in the
> master branch), and the above actually caused foo.c and bar.c
> to have the ident attribute.
Wouldn’t something like
/foo.c -ident has_foreign_ident
work? (Thanks for fixing that attributes macro processing bug, btw.)
> * Hooks are not copied by git clone. Support for copying of hooks
> to non-POSIX-like systems is not something I'd like to attempt.
Can’t you include a hooks/pre-commit file and a HACKING file: "copy
this file to .git/hooks if you want your patches to be accepted"?
Thanks for your hard work,
Jonathan
next prev parent reply other threads:[~2010-06-04 19:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 14:41 [PATCH v4 0/5] Patches to avoid reporting conversion changes Henrik Grubbström (Grubba)
2010-06-01 14:41 ` [PATCH v4 1/5] sha1_file: Add index_blob() Henrik Grubbström (Grubba)
2010-06-01 14:41 ` [PATCH v4 2/5] strbuf: Add strbuf_add_uint32() Henrik Grubbström (Grubba)
2010-06-01 14:41 ` [PATCH v4 3/5] cache: Keep track of conversion mode changes Henrik Grubbström (Grubba)
2010-06-01 14:41 ` [PATCH v4 4/5] cache: Add index extension "CONV" Henrik Grubbström (Grubba)
2010-06-01 14:41 ` [PATCH v4 5/5] t/t0021: Test that conversion changes are detected Henrik Grubbström (Grubba)
2010-06-02 4:40 ` [PATCH v4 0/5] Patches to avoid reporting conversion changes Junio C Hamano
2010-06-03 16:00 ` Henrik Grubbström
2010-06-04 0:56 ` Jonathan Nieder
2010-06-04 11:59 ` Henrik Grubbström
2010-06-04 19:42 ` Jonathan Nieder [this message]
2010-06-06 10:50 ` Henrik Grubbström
2010-06-07 8:59 ` Finn Arne Gangstad
2010-06-07 16:37 ` Henrik Grubbström
2010-06-07 19:50 ` Finn Arne Gangstad
2010-06-08 15:52 ` Henrik Grubbström
2010-06-09 14:03 ` Finn Arne Gangstad
2010-06-09 18:04 ` Henrik Grubbström
2010-06-10 19:55 ` Finn Arne Gangstad
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=20100604194201.GB21492@progeny.tock \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=grubba@roxen.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).