adof 0.10.0

ADOF - An Automatic Dot-files Organizer Friend
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use git2::IndexAddOption;

use crate::git::commit::commit;

use super::*;

pub fn git_add() {
    let repo = get_repo();
    let mut index = repo.index().unwrap();

    index
        .add_all(["*"].iter(), IndexAddOption::DEFAULT, None)
        .unwrap();

    index.write().unwrap();

    commit();
}