-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGitTester.java
More file actions
30 lines (23 loc) · 740 Bytes
/
GitTester.java
File metadata and controls
30 lines (23 loc) · 740 Bytes
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
import java.security.*;
import java.util.*;
import java.io.*;
public class GitTester {
public static void main(String[] args) throws NoSuchAlgorithmException, IOException {
Blob a = new Blob("balls.txt");
System.out.println();
System.out.println(a.getSha1(""));
System.out.println();
a.makeFile();
Index index = new Index();
index.init();
index.add("balls2.txt");
index.add("balls.txt");
index.add("balls3.txt");
index.printBlobs();
// <<<<<<< master
// index.remove("C:\\Users\\danie\\OneDrive\\Desktop\\Topics Repos\\Programming-Git-Bari\\balls2.txt");
// =======
// index.remove("./balls2.txt");
// >>>>>>> master
}
}