create folder method

This commit is contained in:
grimhilt
2023-06-08 18:34:51 +02:00
parent 1b63c86c1a
commit 26153219b2
3 changed files with 41 additions and 4 deletions

View File

@@ -1,7 +1,16 @@
use crate::commands::{status, config};
pub fn push() {
dbg!(status::get_diff());
let (staged_obj, new_obj, del_obj) = status::get_diff();
dbg!(config::get("remote"));
dbg!(status::get_diff());
let remote = match config::get("remote") {
Some(r) => r,
None => {
eprintln!("fatal: no remote set in configuration");
std::process::exit(1);
}
};
let (staged_obj, new_obj, del_obj) = status::get_diff();
}