2016-07-27 45 views
0

最近,在UBIFS中發生內核恐慌。如何定位GIT在給定的文件中提交給定的差異?

的解決方案供應商建議我按照補丁解決方法:

/* 
* Re-erase the PEB before using it. This should minimize any issues 
* from decay of charge in this block. 
*/ 
if (ubi->wl_is_inited) { 
    err = ubi_wl_erase_peb(ubi, pnum); 
    if (err) 
     return err; 
    } 

不過,我想知道哪個犯介紹了該代碼片段,以及爲什麼。

請注意有效的git命令來定位相關的提交。

+0

使用'混帳blame' –

回答

1

git blame可能是你在找什麼。

只需使用這樣的:

git blame <filename> 

或者你可以指定哪些線看:

git blame -L <start>,<end> <filename> 
相關問題