rename git::add_file() to just add(), it can add directories too

This commit is contained in:
Sebastian Kuzminsky 2025-07-11 10:01:05 -06:00
parent 0d6c43d266
commit 7b6efdf925
3 changed files with 3 additions and 3 deletions

View file

@ -95,7 +95,7 @@ impl Comment {
return Err(CommentError::EditorError);
}
if description_filename.exists() && description_filename.metadata()?.len() > 0 {
crate::git::add_file(&description_filename)?;
crate::git::add(&description_filename)?;
} else {
// User saved an empty file, which means they changed their
// mind and no longer want to edit the description.