2016-07-27 51 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> 
相关问题