// Create the in-memory index of the new/updated issue. final ObjectId headId = git.getRepository().resolve( branchName + "^{commit}" ); final DirCache index = createTemporaryIndex( git, headId, content ); final ObjectId indexTreeId = index.writeTree( odi );