blob: 2e7aaab28a28c682be11dc6d643956061440eca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.javacs;
import java.time.Instant;
import java.util.List;
public class Index {
public static final Index EMPTY = new Index(List.of(), Instant.EPOCH);
public final List<Ptr> refs;
// TODO modified time can rewind when you switch branches, need to track modified and look for exact match
public final Instant created;
public Index(List<Ptr> refs, Instant created) {
this.refs = refs;
this.created = created;
}
}
|