MutableCommit newCommit = new MutableCommit();
newCommit.setParentId(currentHead);
newCommit.setCommitTS(System.currentTimeMillis());
newCommit.setMsg(msg);
// dynamically build diff of merged commit
String diff = new DiffBuilder(
store.getNodeState(store.getRootNode(currentHead)),
store.getNodeState(store.getNode(rootNodeId)),
"/", -1, store, "").build();
if (diff.isEmpty()) {
LOG.debug("merge of empty branch {} with differing content hashes encountered, ignore and keep current head {}",