pub struct RepoInfo {
pub path: String,
pub branch: Option<String>,
pub commit_sha: Option<String>,
pub remote_url: Option<String>,
}Expand description
Information about a git repository.
Contains the current state of a repository including branch, HEAD commit, and remote URL.
Fields§
§path: StringAbsolute path to the repository working directory. Currently used for session filtering by working directory.
branch: Option<String>Current branch name, if HEAD points to a branch. Used for branch-based session matching in auto-linking.
commit_sha: Option<String>SHA of the current HEAD commit.
remote_url: Option<String>URL of the “origin” remote, if configured. Reserved for future remote-based features.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoInfo
impl RefUnwindSafe for RepoInfo
impl Send for RepoInfo
impl Sync for RepoInfo
impl Unpin for RepoInfo
impl UnwindSafe for RepoInfo
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