blob: d1eec95119fd2e5dcb0e3786e2de6578fad88132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
use git2::Delta;
#[derive(Debug, PartialEq)]
pub struct FileStat {
status: Delta,
to_name: String,
from_name: String,
}
impl FileStat {
pub fn new(from_name: String, to_name: String, status: Delta) -> Self {
FileStat {
status,
to_name,
from_name,
}
}
pub fn get_status(&self) -> &Delta {
&self.status
}
pub fn get_to_name(&self) -> &String {
&self.to_name
}
pub fn get_from_name(&self) -> &String {
&self.from_name
}
}
|