Skip to content

Java06. ДЗ 01, Murycheva Natalia#8

Open
natalymr wants to merge 5 commits intomasterfrom
sem2-hw1
Open

Java06. ДЗ 01, Murycheva Natalia#8
natalymr wants to merge 5 commits intomasterfrom
sem2-hw1

Conversation

@natalymr
Copy link
Owner

Add solution for git (milestone 1)

  • git init
  • git add
  • git commit
  • git log

natalymr and others added 5 commits September 17, 2018 23:14
 - git init
 - git add
 - git commit
 - git log
add task description
Change formatting
e.printStackTrace();
}

content = "BLOB\n" + content;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чем плох изначальный content, что к нему надо приписывать BLOB\n?


// read file content from file
try {
content = FileUtils.readFileToString(file, "UTF-8");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

файл может не влезть в память

Git(File rootDir) {
pwd = rootDir.getAbsolutePath();
revisions = new HashMap<>();
nextRevisionNumber = 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не умеет считывать уже существующее на диске состояние

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants