Implemented insertion of new files and automatic rename of existing ones.

Added method insertFile to DatabaseModification that schedules new file
insertion and implemented handling of that case in JGitDatabase class.

Apart from that implemented automatic rename of existing files accordingly
to what FileType.path returns.

Adapted existing and added a new test-cases that test new functionality.

It's undefined what will happen if one modification introduces a few rename
and another modification inserts new file in place of old file.

Signed-off-by: Grzegorz Kossakowski <grek@google.com>
4 files changed
tree: 6ed665a6d25c52838b81fa88e853c49c9928b2d4
  1. src/
  2. .gitattributes
  3. .gitignore
  4. COPYING
  5. pom.xml