Remove Worktree::abs_path
I'd like to only have methods related to absolute paths on local worktrees, because it's not really possible to implement them on remote worktrees since we don't know the full path being shared and wouldn't have anything to do with it anyway if we did.
This commit is contained in:
@@ -170,7 +170,7 @@ pub trait File {
|
||||
|
||||
/// Returns the last component of this handle's absolute path. If this handle refers to the root
|
||||
/// of its worktree, then this method will return the name of the worktree itself.
|
||||
fn file_name(&self, cx: &AppContext) -> Option<OsString>;
|
||||
fn file_name(&self, cx: &AppContext) -> OsString;
|
||||
|
||||
fn is_deleted(&self) -> bool;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user