Bug 483596 - resource in conflict in ignored folder brings empty compare editor.
Summary: resource in conflict in ignored folder brings empty compare editor.
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 4.0.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 5.12   Edit
Assignee: Thomas Wolf CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-03 12:16 EST by Bouchet Stéphane CLA
Modified: 2021-06-01 07:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bouchet Stéphane CLA 2015-12-03 12:16:54 EST
Hi,

i had faced a problem that take me some time to resolve.

Symptoms are that a conflict cannot be displayed using the mergeTool action. 
A double click/ usage of mergeTool action on the file was just displaying a blank editor.

After some debug on the code, i found that the parent folder of the conflicting resource was listed on the .gitignore, resulting on an empty difNode ! ( using the use workspace preference for merge ...) 

from [1], when the user select the mergetool action, the diffnode construction filters the contents of the ignored folder dure to filter on line 282 , resulting to a empty diffnode.

A solution could be to remove the ignored resources when using the mergetool with "use workspace" merge preference, or do not display the conflict which is disturbing because egit can still "see" modification on tracked files on the ignored folder.

that a separate use case but the conflict result of a modification on the file that was pushed: ignoring a folder with previously tracked file still shows them in the staging view ...



[1] https://github.com/eclipse/egit/blob/master/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/merge/GitMergeEditorInput.java#L266
Comment 1 Eclipse Genie CLA 2021-05-03 03:54:13 EDT
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/180109