This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Git plugin unable to diff working tree to HEAD of remote repository | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | tmswhite |
Component: | Git | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | git, lucapino, markiewb, terje7601 |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 207165, 245076 | ||
Bug Blocks: | |||
Attachments: | GitHub sync tool |
Description
tmswhite
2012-02-28 04:12:32 UTC
> Although Netbeans will do a fetch, there is no way to do a consolidated diff > against the fetched HEAD revision. Thus, there is no way to preview the > changes that will occur if you do a pull. Right, there is no way to diff against anything other than the current HEAD. We're planning to make the possibility to diff against any revision. > This can result in major conflicts in local repository when doing a pull without knowing what will happen. Right, after that you'll be notified about the conflicts. > Furthermore, NetBeans does not list which files changed as a result of a pull, so there is no easy way to review the history of those files to identify potential issues. Use Git -> Show History for that. Plus in Git -> Show Changes you can see all the files that need to be committed after the merge. *** This bug has been marked as a duplicate of bug 207165 *** I decided to keep this as a separate issue. We could make the pull more complex and display incoming changes (something like a dry run): 1) fetch remote branch into a temporary remote 2) diff HEAD against the temporary branch 3) delete the temporary branch 4) continue with pulling. For that we still need to address #207165. Created attachment 133230 [details]
GitHub sync tool
Take a look at the GitHub tool (screen shot attached). It shows: - all local changes with checkboxes and a 'Commit' button for the changes. - and all local commits with an 'Undo' and a 'Sync' button for the commits Now it is already possible to show incoming commits: Git -> Remote -> Show Incoming. In the next release I'll add an option to Git -> Diff -> Diff To... to diff against a remote repository head. fixed: core-main #26bc2c8a89a3 Integrated into 'main-silver', will be available in build *201410180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/26bc2c8a89a3 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #208930 - Git plugin unable to diff working tree to HEAD of remote repository |