Skip to content
Snippets Groups Projects
Commit 873c1b48 authored by Jack MacLauchlan CS2015's avatar Jack MacLauchlan CS2015
Browse files

major f up might come after this

parent 2caac253
No related branches found
No related tags found
1 merge request!2Commit tree
......@@ -2,4 +2,14 @@ problems learning how to build tree
line endings - possibly not the issue
index not updating
rm tag deletes from file but not when run show
how should push and merge work
\ No newline at end of file
how should push and merge work
empty index
when conflict in comments warn user that someone doing something bad
edit comments
query language - search syntax
hook when someone assigns an issue and i pull notify me of new issues
add watching, notify when closed
when github central server gets pushed send emails, subscribers get emailed, post/recieve hook on central that uses program to search for subsribers
......@@ -28,6 +28,7 @@ public class CommandShow implements Command {
"Tags: ");
issue.getTags().forEach(System.out::println);
System.out.println(issue.getTags().size());
if (issue.getComments().isEmpty()) {
System.out.println("\nNo comments on this issue");
......
......@@ -35,6 +35,7 @@ public class IssueReader {
String content = getContent(blob);
String hash = split(treeWalk.getPathString(), 0);
System.out.println(treeWalk.getPathString());
if (issues.isEmpty() || getIssue(hash) == null) {
Issue issue = new Issue();
......@@ -96,6 +97,8 @@ public class IssueReader {
break;
case "tags":
issue.addTag(data);
// System.out.println(path);
// System.out.println(data);
break;
default:
//ignore
......
......@@ -90,7 +90,7 @@ public class IssueRepo {
}
public void writeIssue(Issue issue, String commitMessage) throws IOException {
DirCache index = repository.lockDirCache();
// DirCache index = repository.lockDirCache();
RevCommit currentCommit = getCurrentCommit();
......@@ -103,7 +103,7 @@ public class IssueRepo {
ObjectId repoTree = oi.insert(Constants.OBJ_TREE, repoTreeFormatter.toByteArray());
commit(commitMessage, repoTree, currentCommit);
index.unlock();
// index.unlock();
}
public void deleteIssue(String hash) throws IOException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment