by f311a · 1y ago · 0 comments
Looking at the history of specific files or functions usually gives a quick idea. In modern Git, you can search the history of a specific function.
>> git log -L :func_name:path/to/a/file.c
You need to have a proper .gitattributes file, though.Nothing annoys me more than a codebase with broken commits that break git bisect.
It probably would be slightly faster to jump to bisect. But it’s not in my muscle memory.
/* snip */
void
Object::do_the_thing (int)
{
}
void
Object::do_the_thing (float)
{
}
/* snip*/
AFAICT, git log will never be able to be told to review the history of the second version.