MCPcopy Create free account
hub / github.com/SpartanJ/eepp / blame

Method blame

src/tools/ecode/plugins/git/gitplugin.cpp:655–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void GitPlugin::blame( UICodeEditor* editor ) {
656 if ( !mGitFound ) {
657 editor->setTooltipText(
658 i18n( "git_not_found",
659 "Git binary not found.\nPlease check that git is accessible via PATH" ) );
660 return;
661 }
662 mThreadPool->run( [this, editor]() {
663 auto blame = mGit->blame( editor->getDocument().getFilePath(),
664 editor->getDocument().getSelection().start().line() + 1 );
665 editor->runOnMainThread( [this, editor, blame] {
666 displayTooltip(
667 editor, blame,
668 editor->getScreenPosition( editor->getDocument().getSelection().start() )
669 .getPosition() );
670 } );
671 } );
672}
673
674// Branch operations
675

Callers

nothing calls this directly

Calls 9

setTooltipTextMethod · 0.80
getFilePathMethod · 0.80
getDocumentMethod · 0.80
runOnMainThreadMethod · 0.80
getScreenPositionMethod · 0.80
runMethod · 0.45
startMethod · 0.45
getSelectionMethod · 0.45
getPositionMethod · 0.45

Tested by

no test coverage detected