git - git history of a function with overloading
问题描述
With git show a function history, I can use git -L :functionName:fileName
.
But for something language such as C++, function overload allow more than one function with same funcation name, like,
int sum(int a,int b)
{
return a+b;
}
double sum(double a,double b)
{
return a+b;
}
float sum(float a,float b)
{
return a+b;
}
How to show the one specific function history?
解决方案
推荐阅读
- c - 在特定情况下取消引用指针
- python - 使用 Selenium 从文本中提取链接
- android - 无法使用 react-native 链接将 react-native-navigation 与 Android 链接
- ssis - 如何在 SSIS 的某些列中加载带有双引号、逗号和换行符的 csv?
- tox - tox 错误“ImportError:无法导入名称抑制”
- python - 创建不可变类的 Pythonic 方法是什么?
- php - 我无法将数据插入数据库
- microservices - 内部服务调用是否需要经过API网关,比如zuul?
- wordpress - 从使用 do_action 的页脚中删除 Wordpress 代码
- jquery - ClientIDMode 静态导致按钮 onclick 方法无法加载