Skip to content
Snippets Groups Projects
Commit e4d041ab authored by nfontrod's avatar nfontrod
Browse files

src/commit.rs: function check_if_borgignore_exists is now public

parent 2c050d31
Branches
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ pub fn delete_commit(commit: &str, borg_path: &PathBuf) { ...@@ -62,7 +62,7 @@ pub fn delete_commit(commit: &str, borg_path: &PathBuf) {
/// A tuple containing: /// A tuple containing:
/// * A boolean indicating if .borgignore file exits /// * A boolean indicating if .borgignore file exits
/// * The path to this borgignore file /// * The path to this borgignore file
fn check_if_borgignore_exists(borg_folder: &PathBuf) -> (bool, PathBuf) { pub fn check_if_borgignore_exists(borg_folder: &PathBuf) -> (bool, PathBuf) {
let mut project_folder = borg_folder.parent().unwrap().to_path_buf(); let mut project_folder = borg_folder.parent().unwrap().to_path_buf();
project_folder.push(".borgignore"); project_folder.push(".borgignore");
(project_folder.is_file(), project_folder) (project_folder.is_file(), project_folder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment