/MyGit

Primary LanguageJava

MyGit Methods

Index class has a few main methods

Primary
  • init(): initialize index file inside objects directory
  • add(String): add a file
  • remove(String): remove a file
Helpers
  • getMapFromFile(File): creates a HashMap<String, String> from index file
  • setFile(): set our hashmap to the index file

Example use case

Index i = new Index();
i.init();
i.add("test.txt");
i.remove("test.txt");

About

Made by Aariz