Re: [PATCH 0/4] --word-regex sanity checking and such
From: Scott Johnson <hidden>
Date: 2016-06-15 22:50:15
Possibly related (same subject, not in this thread)
- 2016-06-15 · [PATCH 0/4] --word-regex sanity checking and such · Thomas Rast <hidden>
Turns out to be system-dependent. I built v1.7.3.3 from source on three different boxes and only one of them is broken. The /etc/redhat-release shows: Broken: Fedora Core release 6 (Zod) Correct: Red Hat Enterprise Linux WS release 4 (Nahant Update 6) Fedora release 9 (Sulphur) So I guess that means the problem is in some library that has most likely been fixed since Fedora 6. ----- Original Message ---- From: Thomas Rast <redacted> To: Scott Johnson <redacted> Cc: Michael J Gruber <redacted>; Matthijs Kooijman [off-list ref]; git@vger.kernel.org Sent: Wed, December 15, 2010 11:51:14 AM Subject: Re: [PATCH 0/4] --word-regex sanity checking and such Scott Johnson wrote:
I've attached a pre and post with the complete file that is showing this problem. I hope you'll be able to reproduce the issue with this.
I can't reproduce. I did this:
$ ls -l
total 16
-rw-r--r-- 1 thomas users 2128 2010-12-15 20:42 post.html
-rw-r--r-- 1 thomas users 2354 2010-12-15 20:42 pre.html
$ echo '*.html diff=html' >.gitattributes
$ git diff --no-index pre.html post.html
diff --git 1/pre.html 2/post.html
[...]
- <li class="ydn-patterns"><em></em><a href="#">ydn-patterns</a></li>
- <li class="ydn-mail"><em></em><a href="#">ydn-mail</a></li>
- <li class="yws-maps"><em></em><a href="#">yws-maps</a></li>
- <li class="ydn-delicious"><em></em><a href="#">ydn-delicious</a></li>
- <li class="yws-flickr"><em></em><a href="#">yws-flickr</a></li>
- <li class="yws-events"><em></em><a href="#">yws-events</a></li>
+ <li><em></em><a href="#">ydn-patterns</a></li>
+ <li><em></em><a href="#">ydn-mail</a></li>
+ <li><em></em><a href="#">yws-maps</a></li>
+ <li><em></em><a href="#">ydn-delicious</a></li>
+ <li><em></em><a href="#">yws-flickr</a></li>
+ <li><em></em><a href="#">yws-events</a></li>
</ul>
</div><!-- wrap -->
</div><!-- folder_list -->
$ git diff --word-diff --no-index pre.html post.html
diff --git 1/pre.html 2/post.html
[...]
<li[-class="ydn-patterns"-]><em></em><a href="#">ydn-patterns</a></li>
<li[-class="ydn-mail"-]><em></em><a href="#">ydn-mail</a></li>
<li[-class="yws-maps"-]><em></em><a href="#">yws-maps</a></li>
<li[-class="ydn-delicious"-]><em></em><a
href="#">ydn-delicious</a></li>
<li[-class="yws-flickr"-]><em></em><a href="#">yws-flickr</a></li>
<li[-class="yws-events"-]><em></em><a href="#">yws-events</a></li>
</ul>
</div><!-- wrap -->
</div><!-- folder_list -->
That's running bleeding-edge git, like I always do, but the userdiff
stuff hasn't changed in ages.
What does
git config diff.html.wordregex
say on your system?
--
Thomas Rast
trast@{inf,student}.ethz.ch