final Map<String, Pair<File, ObjectId>> paths = new HashMap<String, Pair<File, ObjectId>>( content.size() );
final Set<String> path2delete = new HashSet<String>();
final DirCache inCoreIndex = DirCache.newInCore();
final ObjectInserter inserter = git.getRepository().newObjectInserter();
final DirCacheEditor editor = inCoreIndex.editor();
try {
for ( final Map.Entry<String, File> pathAndContent : content.entrySet() ) {
final String gPath = fixPath( pathAndContent.getKey() );
if ( pathAndContent.getValue() == null ) {