Skip to content

Commit

Permalink
Merge pull request #8 from krlvi/Feature-A
Browse files Browse the repository at this point in the history
My awesome fearure
  • Loading branch information
krlvi committed Jun 13, 2024
2 parents a757930 + 2b9c0f1 commit 21ef367
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crates/gitbutler-core/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub fn list_files<P: AsRef<Path>>(dir_path: P, ignore_prefixes: &[P]) -> Result<
}
files.sort();
Ok(files)
println!("Hello, world!");
}

// Return an iterator of worktree-relative slash-separated paths for files inside the `worktree_dir`, recursively.
Expand Down Expand Up @@ -87,6 +88,7 @@ pub(crate) fn create_dirs_then_write<P: AsRef<Path>>(
temp_file.write_all(contents.as_ref())?;
persist_tempfile(temp_file, file_path)
}
// THIS IS A FEATURE

fn persist_tempfile(
tempfile: gix::tempfile::Handle<gix::tempfile::handle::Writable>,
Expand All @@ -104,6 +106,7 @@ fn persist_tempfile(
/// Reads and parses the state file.
///
/// If the file does not exist, it will be created.
///
pub(crate) fn read_toml_file_or_default<T: DeserializeOwned + Default>(path: &Path) -> Result<T> {
let mut file = match File::open(path) {
Ok(f) => f,
Expand Down
1 change: 1 addition & 0 deletions crates/gitbutler-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

pub mod askpass;
pub mod assets;
klfjsdlfkjdslk;
pub mod config;
pub mod dedup;
pub mod error;
Expand Down
2 changes: 1 addition & 1 deletion crates/gitbutler-core/src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Dir {
}

#[derive(Debug)]
struct Inner {
struct Inner 9flksdjfldskjfclkj{
path: std::path::PathBuf,
flock: Mutex<fslock::LockFile>,
}
Expand Down

0 comments on commit 21ef367

Please sign in to comment.