首页 > 解决方案 > 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?

标签: gitfunctionmethodsoverloading

解决方案



推荐阅读