# blame formatting bug

2 messages from 2010-12-09 to 2010-12-09. Participants: Vitali, Thomas Rast.
Thread: https://gitlist.dev/t/26005

## Vitali, 2010-12-09 08:11

Subject: blame formatting bug
Message-ID: <4D008F3A.7080205@gmx.com>
URL: https://gitlist.dev/e/4D008F3A.7080205%40gmx.com

```
Hi.

On the jquery repo the following command:

git blame df9c37ec852f8c873e226cd0ae190f969e0edc17 -- jquery/jquery.js > 
blame

gives me the file with this:

c3c706d3 jquery/jquery.js (John Resig 2006-06-22 05:23:38 +0000  576) 	},
6ae392a4 jquery/jquery.js (John Resig 2006-06-22 20:14:41 +0000  577) 	
df9c37ec jquery/jquery.js (John Resig 2006-07-09 20:49:40 +0000  578) 
extend: function(obj,prop) {
		if ( !prop ) {
			prop = obj;
			obj = this;
		}
	
		for ( var i in prop )
			obj[i] = prop[i];
	
		return obj;
	}
c3c706d3 jquery/jquery.js (John Resig 2006-06-22 05:23:38 +0000  579) };
^8a4a1ed core/core.js     (John Resig 2006-03-22 03:33:07 +0000  580)
df9c37ec jquery/jquery.js (John Resig 2006-07-09 20:49:40 +0000  581) 
jQuery.extend = jQuery.fn.extend;

Looks like bug.

```

## Thomas Rast, 2010-12-09 13:55

Subject: Re: blame formatting bug
Message-ID: <201012091455.50144.trast@student.ethz.ch>
URL: https://gitlist.dev/e/201012091455.50144.trast%40student.ethz.ch
In-Reply-To: <4D008F3A.7080205@gmx.com>

```
Vitali wrote:
> df9c37ec jquery/jquery.js (John Resig 2006-07-09 20:49:40 +0000  578) 
> extend: function(obj,prop) {
> 		if ( !prop ) {
> 			prop = obj;
> 			obj = this;
> 		}
> 	
> 		for ( var i in prop )
> 			obj[i] = prop[i];
> 	
> 		return obj;
> 	}
> 
> Looks like bug.

My 'less' shows that these lines are "terminated" with CRs.  Git's
diff engine does not treat CRs as line endings, so neither does blame.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

```
