我在我的文件Main/VProj/AppModel.swift
中有以下的Swift函数。
func createItemAndSegment(image:UIImage, completionHandler:(Item?, NSError?)->Void) {
\\[...]
}
git log -L :<funcname>:<file>
的文档说明如下:
但是命令:-L <start>,<end>:<file>
-L :<funcname>:<file>
跟踪“<start>,<end>”(或函数名正则表达式<funcname>)在<file>中给出的行范围的演变。
git log -L :createItemAndSegment:Main/VProj/AppModel.swift
git log -L :'createItemAndSegment':Main/VProj/AppModel.swift
git log -L :'/createItemAndSegment/':Main/VProj/AppModel.swift
starting at line 1: no match
。当文档说
:<funcname>
是“函数名正则表达式”时,应该长成什么样子?