Bug 568674 - Pull single file in Synchronize-View
Summary: Pull single file in Synchronize-View
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 5.9   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-10 07:50 EST by Noel Zehnder CLA
Modified: 2020-11-11 08:12 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noel Zehnder CLA 2020-11-10 07:50:57 EST
The project is opened in the Synchronize-View and I want to pull changes of a single file and not the whole project, but as soon as I click on pull the whole project is updated even when just the single file is selected.
Did I something wrong or is there a bug?
Comment 1 Matthias Sohn CLA 2020-11-10 10:17:51 EST
The synchronize view was invented in the old times of CVS and similar centralised versioning systems. Git doesn't support fetching updates for a single file but only commits.
Comment 2 Thomas Wolf CLA 2020-11-10 11:24:08 EST
What the user can do, however, is the following:

* fetch (not pull) from upstream
* configure the history to show all branches (possibly including the special
  refs like FETCH_HEAD, too), and to follow the selection
* select the file in the package or project explorer: the history view should
  now show the history of that file, including the commits just fetched
* select the wanted commit (probably the topmost) in the history view
* in the bottom right of the history view: in the file list of that commit
  use Contextmenu->Check Out This Version on the wanted file