{"action":"created","comment":{"url":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments/47529755","id":47529755,"diff_hunk":"@@ -0,0 +1,116 @@\n+/*******************************************************************************\n+ * Copyright (c) 2012-2015 Codenvy, S.A.\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ *\n+ * Contributors:\n+ *   Codenvy, S.A. - initial API and implementation\n+ *******************************************************************************/\n+package org.eclipse.che.ide.ext.git.client.action;\n+\n+import com.google.inject.Inject;\n+import com.google.inject.Singleton;\n+\n+import org.eclipse.che.api.git.gwt.client.GitServiceClient;\n+import org.eclipse.che.api.workspace.shared.dto.ProjectConfigDto;\n+import org.eclipse.che.ide.api.action.ActionEvent;\n+import org.eclipse.che.ide.api.app.AppContext;\n+import org.eclipse.che.ide.api.notification.NotificationManager;\n+import org.eclipse.che.ide.api.project.node.HasStorablePath;\n+import org.eclipse.che.ide.api.selection.Selection;\n+import org.eclipse.che.ide.api.selection.SelectionAgent;\n+import org.eclipse.che.ide.ext.git.client.GitLocalizationConstant;\n+import org.eclipse.che.ide.ext.git.client.compare.ComparePresenter;\n+import org.eclipse.che.ide.ext.git.client.compare.changedList.ChangedListPresenter;\n+import org.eclipse.che.ide.part.explorer.project.ProjectExplorerPresenter;\n+import org.eclipse.che.ide.rest.AsyncRequestCallback;\n+import org.eclipse.che.ide.rest.StringUnmarshaller;\n+import org.eclipse.che.ide.ui.dialogs.ConfirmCallback;\n+import org.eclipse.che.ide.ui.dialogs.DialogFactory;\n+\n+import java.util.Collections;\n+\n+import static org.eclipse.che.api.git.shared.DiffRequest.DiffType.NAME_STATUS;\n+\n+/** @author Igor Vinokur */\n+@Singleton\n+public class CompareWithLatestRepositoryAction extends GitAction {\n+    private final ComparePresenter        comparePresenter;\n+    private final ChangedListPresenter    changedListPresenter;\n+    private final DialogFactory           dialogFactory;\n+    private final NotificationManager     notificationManager;\n+    private final GitServiceClient        gitService;\n+    private final GitLocalizationConstant locale;\n+    private final SelectionAgent          selectionAgent;\n+\n+    private final String REVISION = \"HEAD\";\n+\n+    @Inject\n+    public CompareWithLatestRepositoryAction(ComparePresenter presenter,\n+                         ChangedListPresenter changedListPresenter,","path":"plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/action/CompareWithLatestRepositoryAction.java","position":52,"original_position":52,"commit_id":"86c0227cf22c26b3152b5b41b759e5acbfc53ea6","original_commit_id":"86c0227cf22c26b3152b5b41b759e5acbfc53ea6","user":{"login":"vzhukovskii","id":1968177,"avatar_url":"https://avatars.githubusercontent.com/u/1968177?v=3","gravatar_id":"","url":"https://api.github.com/users/vzhukovskii","html_url":"https://github.com/vzhukovskii","followers_url":"https://api.github.com/users/vzhukovskii/followers","following_url":"https://api.github.com/users/vzhukovskii/following{/other_user}","gists_url":"https://api.github.com/users/vzhukovskii/gists{/gist_id}","starred_url":"https://api.github.com/users/vzhukovskii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vzhukovskii/subscriptions","organizations_url":"https://api.github.com/users/vzhukovskii/orgs","repos_url":"https://api.github.com/users/vzhukovskii/repos","events_url":"https://api.github.com/users/vzhukovskii/events{/privacy}","received_events_url":"https://api.github.com/users/vzhukovskii/received_events","type":"User","site_admin":false},"body":"Fix the identations","created_at":"2015-12-14T17:41:02Z","updated_at":"2015-12-14T17:41:02Z","html_url":"https://github.com/codenvy/che-plugins/pull/467#discussion_r47529755","pull_request_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/467","_links":{"self":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments/47529755"},"html":{"href":"https://github.com/codenvy/che-plugins/pull/467#discussion_r47529755"},"pull_request":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/467"}}},"pull_request":{"url":"https://api.github.com/repos/codenvy/che-plugins/pulls/467","id":53592113,"html_url":"https://github.com/codenvy/che-plugins/pull/467","diff_url":"https://github.com/codenvy/che-plugins/pull/467.diff","patch_url":"https://github.com/codenvy/che-plugins/pull/467.patch","issue_url":"https://api.github.com/repos/codenvy/che-plugins/issues/467","number":467,"state":"open","locked":false,"title":"IDEX-3674: Add git compare with latest repo version functionality","user":{"login":"vinokurig","id":7668752,"avatar_url":"https://avatars.githubusercontent.com/u/7668752?v=3","gravatar_id":"","url":"https://api.github.com/users/vinokurig","html_url":"https://github.com/vinokurig","followers_url":"https://api.github.com/users/vinokurig/followers","following_url":"https://api.github.com/users/vinokurig/following{/other_user}","gists_url":"https://api.github.com/users/vinokurig/gists{/gist_id}","starred_url":"https://api.github.com/users/vinokurig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinokurig/subscriptions","organizations_url":"https://api.github.com/users/vinokurig/orgs","repos_url":"https://api.github.com/users/vinokurig/repos","events_url":"https://api.github.com/users/vinokurig/events{/privacy}","received_events_url":"https://api.github.com/users/vinokurig/received_events","type":"User","site_admin":false},"body":"@skabashnyuk @vparfonov @sleshchenko please review","created_at":"2015-12-14T17:02:41Z","updated_at":"2015-12-14T17:41:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52f30a99ecb24e93693cf02bc267656ae995506d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/467/commits","review_comments_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/467/comments","review_comment_url":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codenvy/che-plugins/issues/467/comments","statuses_url":"https://api.github.com/repos/codenvy/che-plugins/statuses/86c0227cf22c26b3152b5b41b759e5acbfc53ea6","head":{"label":"codenvy:IDEX-3674","ref":"IDEX-3674","sha":"86c0227cf22c26b3152b5b41b759e5acbfc53ea6","user":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"repo":{"id":32935729,"name":"che-plugins","full_name":"codenvy/che-plugins","owner":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codenvy/che-plugins","description":"Plugins for che","fork":false,"url":"https://api.github.com/repos/codenvy/che-plugins","forks_url":"https://api.github.com/repos/codenvy/che-plugins/forks","keys_url":"https://api.github.com/repos/codenvy/che-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codenvy/che-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codenvy/che-plugins/teams","hooks_url":"https://api.github.com/repos/codenvy/che-plugins/hooks","issue_events_url":"https://api.github.com/repos/codenvy/che-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/codenvy/che-plugins/events","assignees_url":"https://api.github.com/repos/codenvy/che-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/codenvy/che-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/codenvy/che-plugins/tags","blobs_url":"https://api.github.com/repos/codenvy/che-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codenvy/che-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codenvy/che-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/codenvy/che-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codenvy/che-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/codenvy/che-plugins/languages","stargazers_url":"https://api.github.com/repos/codenvy/che-plugins/stargazers","contributors_url":"https://api.github.com/repos/codenvy/che-plugins/contributors","subscribers_url":"https://api.github.com/repos/codenvy/che-plugins/subscribers","subscription_url":"https://api.github.com/repos/codenvy/che-plugins/subscription","commits_url":"https://api.github.com/repos/codenvy/che-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/codenvy/che-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/codenvy/che-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/codenvy/che-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/codenvy/che-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/codenvy/che-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codenvy/che-plugins/merges","archive_url":"https://api.github.com/repos/codenvy/che-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codenvy/che-plugins/downloads","issues_url":"https://api.github.com/repos/codenvy/che-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/codenvy/che-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/codenvy/che-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/codenvy/che-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codenvy/che-plugins/labels{/name}","releases_url":"https://api.github.com/repos/codenvy/che-plugins/releases{/id}","created_at":"2015-03-26T15:30:37Z","updated_at":"2015-12-09T03:35:38Z","pushed_at":"2015-12-14T17:02:41Z","git_url":"git://github.com/codenvy/che-plugins.git","ssh_url":"git@github.com:codenvy/che-plugins.git","clone_url":"https://github.com/codenvy/che-plugins.git","svn_url":"https://github.com/codenvy/che-plugins","homepage":null,"size":23686,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":7,"forks":23,"open_issues":7,"watchers":15,"default_branch":"master"}},"base":{"label":"codenvy:4.0","ref":"4.0","sha":"5027c069bb43620271d1ca74d576f4335424159d","user":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"repo":{"id":32935729,"name":"che-plugins","full_name":"codenvy/che-plugins","owner":{"login":"codenvy","id":2736247,"avatar_url":"https://avatars.githubusercontent.com/u/2736247?v=3","gravatar_id":"","url":"https://api.github.com/users/codenvy","html_url":"https://github.com/codenvy","followers_url":"https://api.github.com/users/codenvy/followers","following_url":"https://api.github.com/users/codenvy/following{/other_user}","gists_url":"https://api.github.com/users/codenvy/gists{/gist_id}","starred_url":"https://api.github.com/users/codenvy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenvy/subscriptions","organizations_url":"https://api.github.com/users/codenvy/orgs","repos_url":"https://api.github.com/users/codenvy/repos","events_url":"https://api.github.com/users/codenvy/events{/privacy}","received_events_url":"https://api.github.com/users/codenvy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codenvy/che-plugins","description":"Plugins for che","fork":false,"url":"https://api.github.com/repos/codenvy/che-plugins","forks_url":"https://api.github.com/repos/codenvy/che-plugins/forks","keys_url":"https://api.github.com/repos/codenvy/che-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codenvy/che-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codenvy/che-plugins/teams","hooks_url":"https://api.github.com/repos/codenvy/che-plugins/hooks","issue_events_url":"https://api.github.com/repos/codenvy/che-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/codenvy/che-plugins/events","assignees_url":"https://api.github.com/repos/codenvy/che-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/codenvy/che-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/codenvy/che-plugins/tags","blobs_url":"https://api.github.com/repos/codenvy/che-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codenvy/che-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codenvy/che-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/codenvy/che-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codenvy/che-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/codenvy/che-plugins/languages","stargazers_url":"https://api.github.com/repos/codenvy/che-plugins/stargazers","contributors_url":"https://api.github.com/repos/codenvy/che-plugins/contributors","subscribers_url":"https://api.github.com/repos/codenvy/che-plugins/subscribers","subscription_url":"https://api.github.com/repos/codenvy/che-plugins/subscription","commits_url":"https://api.github.com/repos/codenvy/che-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/codenvy/che-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/codenvy/che-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/codenvy/che-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/codenvy/che-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/codenvy/che-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codenvy/che-plugins/merges","archive_url":"https://api.github.com/repos/codenvy/che-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codenvy/che-plugins/downloads","issues_url":"https://api.github.com/repos/codenvy/che-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/codenvy/che-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/codenvy/che-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/codenvy/che-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codenvy/che-plugins/labels{/name}","releases_url":"https://api.github.com/repos/codenvy/che-plugins/releases{/id}","created_at":"2015-03-26T15:30:37Z","updated_at":"2015-12-09T03:35:38Z","pushed_at":"2015-12-14T17:02:41Z","git_url":"git://github.com/codenvy/che-plugins.git","ssh_url":"git@github.com:codenvy/che-plugins.git","clone_url":"https://github.com/codenvy/che-plugins.git","svn_url":"https://github.com/codenvy/che-plugins","homepage":null,"size":23686,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":7,"forks":23,"open_issues":7,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/467"},"html":{"href":"https://github.com/codenvy/che-plugins/pull/467"},"issue":{"href":"https://api.github.com/repos/codenvy/che-plugins/issues/467"},"comments":{"href":"https://api.github.com/repos/codenvy/che-plugins/issues/467/comments"},"review_comments":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/467/comments"},"review_comment":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codenvy/che-plugins/pulls/467/commits"},"statuses":{"href":"https://api.github.com/repos/codenvy/che-plugins/statuses/86c0227cf22c26b3152b5b41b759e5acbfc53ea6"}}}}