Community
Participate
Working Groups
Compare these two use cases: A1. Right-click repository in Git Repositories A2. Select 'Remote' > 'Fetch...' A3. Select 'Configured remote repository' A4. Click 'Next' A5. 'Source ref' and 'Destination ref' are blank A6. Select 'mybranch [branch]' from 'Source ref' drop-down menu A7. 'Destination ref' is automatically filled with 'refs/remotes/origin/mybranch' A8. Click 'Cancel' B1. Copy a custom URI to clipboard B2. Right-click repository in Git Repositories B3. Select 'Remote' > 'Fetch...' B4. Select 'Custom URI' B5. Click 'Next' B6. 'Source ref' and 'Destination ref' are blank B7. Select 'mybranch [branch]' from 'Source ref' drop-down menu B8. 'Destination ref' is left blank I would like 'Destination ref' to be filled with a suggested branch name at step B8 just like it does at step A7.
You probably don't want to override accidentally an existing remote tracking ref that "belongs" to a configured remote by something fetched from a custom URI. I wound tend towards "leave it as it is".
s/wound/would/
Hi Thomas, Perhaps you can help me find a good way of working for my use case. We recently started to work on a project that uses GitHub. My use case is for fetching a branch for a commit under review to try it out in Eclipse. With Gerrit: A1. From the change web page, take note of the patch number A2. Right-click repository in Git Repositories A3. Select 'Fetch from Gerrit...' A4. Press Ctrl+space in 'Change' text box A5. Select the patch set from the drop-down list A6. Click 'Finish' With GitHub: B1. From the pull request web page, click the link 'user:mybranch' B2. Click the 'Code' button B3. Click the 'Copy to clipboard' button B4. Right-click repository in Git Repositories B5. Select 'Remote' > 'Fetch...' B6. Select 'Custom URI' B7. Click 'Next' B8. Select 'mybranch [branch]' from 'Source ref' drop-down menu B9. Select any unrelated existing branch in 'Destination ref' drop-down menu B10. Manually edit the 'Destination ref' to remove that existing branch name B11. Manually type-in 'mybranch' in its place B12. Click 'Add Spec' B13. Click 'Finish' I may be doing it wrong, but I absolutely hate this.
Yes, EGit has no Github PR integration. IIRC the EGit-Github bundles (Mylyn integration) have support for fetching PRs. Doing some integration directly in EGit similar to "Fetch from Gerrit..." is the topic of bug 544815. I started with that, but it's stalled (didn't get very far yet). Not enough hours in a day...