nextsync-rust/src/commands/push.rs
2023-06-12 01:16:39 +02:00

19 lines
402 B
Rust

use crate::commands::{status, config};
pub fn push() {
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();
// read index
// if dir upload dir
}