Skip to content

Commit

Permalink
cli: remove git_util::get_git_repo
Browse files Browse the repository at this point in the history
No longer used by anything.
  • Loading branch information
emilazy committed Feb 3, 2025
1 parent 8402b21 commit d0bd11c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cli/src/git_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ use jj_lib::op_store::RefTarget;
use jj_lib::op_store::RemoteRef;
use jj_lib::repo::ReadonlyRepo;
use jj_lib::repo::Repo;
use jj_lib::store::Store;
use jj_lib::workspace::Workspace;
use unicode_width::UnicodeWidthStr;

Expand All @@ -51,11 +50,6 @@ use crate::formatter::Formatter;
use crate::ui::ProgressOutput;
use crate::ui::Ui;

// TODO: migrate to gitoxide or subprocess, and remove this function
pub(crate) fn get_git_repo(store: &Store) -> Result<git2::Repository, CommandError> {
Ok(git::get_git_backend(store)?.open_git_repo()?)
}

pub fn is_colocated_git_workspace(workspace: &Workspace, repo: &ReadonlyRepo) -> bool {
let Ok(git_backend) = git::get_git_backend(repo.store()) else {
return false;
Expand Down

0 comments on commit d0bd11c

Please sign in to comment.