19 lines
402 B
Rust
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
|
|
|
|
}
|