* Save local history.
*
* @param repository
*/
public static void saveLocalHistory(Repository repository) {
IndexDiffCacheEntry indexDiffCacheEntry = org.eclipse.egit.core.Activator
.getDefault().getIndexDiffCache()
.getIndexDiffCacheEntry(repository);
IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
if (indexDiffData != null) {
Collection<IResource> changedResources = indexDiffData
.getChangedResources();
if (changedResources != null) {
for (IResource changedResource : changedResources) {