pub struct GitLgService { /* private fields */ }Implementations§
Source§impl GitLgService
impl GitLgService
pub fn new(git: GitRunner, actions: ActionCatalog) -> Self
pub fn with_default_actions(git: GitRunner) -> Self
pub fn actions(&self) -> &ActionCatalog
pub fn graph(&self, repo_path: &Path, query: &GraphQuery) -> Result<GraphData>
pub fn graph_filtered( &self, repo_path: &Path, query: &GraphQuery, search_query: &CommitSearchQuery, ) -> Result<GraphData>
pub fn execute_action( &self, repo_path: &Path, request: ActionRequest, default_remote_name: &str, ) -> Result<ActionExecutionResult>
pub fn resolve_action_preview( &self, request: ActionRequest, default_remote_name: &str, repo_path: Option<&Path>, ) -> Result<ResolvedAction>
pub fn blame_line( &self, repo_path: &Path, file: &Path, line: usize, ) -> Result<BlameInfo>
pub fn commit_file_changes( &self, repo_path: &Path, commit_hash: &str, ) -> Result<Vec<FileChange>>
pub fn commit_file_patch( &self, repo_path: &Path, commit_hash: &str, file_path: &str, context_lines: usize, ) -> Result<String>
Trait Implementations§
Source§impl Clone for GitLgService
impl Clone for GitLgService
Source§fn clone(&self) -> GitLgService
fn clone(&self) -> GitLgService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GitLgService
impl RefUnwindSafe for GitLgService
impl Send for GitLgService
impl Sync for GitLgService
impl Unpin for GitLgService
impl UnsafeUnpin for GitLgService
impl UnwindSafe for GitLgService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more