Re: [PATCH 0/4] refactor the --color-words to make it more hackable
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jan 11, 2009, 21:53 UTC
- Message-ID
- <200901112253.27165.trast@student.ethz.ch>
- In-Reply-To
- <alpine.DEB.1.00.0901112057300.3586@pacific.mpi-cbg.de>
Johannes Schindelin wrote:
> > But at least _I_ think it is easy to follow, and it actually makes the code > more readable/hackable. Correct me if I'm wrong.
It indeed seems a sane approach. However, the final result segfaults and/or prints garbage (on apparently every commit except very small changes) when using the regex '\S+', which IMHO should give exactly the same result as not using a regex at all. In git.git:
$ ./git-show --color-words='\S+' 7eb5bbdb645 Segmentation fault $ ./git-show --color-words='\S+' d3240d935c4 [...garbled output...] Segmentation fault
Plain --color-words is not affected.
--
Thomas Rast
trast@{inf,student}.ethz.ch