Bug 573222 - Provide an API to get access to git information
Summary: Provide an API to get access to git information
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 5.12   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 5.12   Edit
Assignee: Thomas Wolf CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 572802
  Show dependency tree
 
Reported: 2021-04-28 11:54 EDT by Thomas Wolf CLA
Modified: 2021-05-20 05:50 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 Thomas Wolf CLA 2021-04-28 11:54:01 EDT
Currently some third-party bundles rely on EGit internals to find the repository or index state of git-managed resources.

This puts those third-party bundles at risk to break whenever we refactor something in internal classes, and puts us at risk to unsuspectingly break third-party bundles.

EGit should provide a simple basic public stable API such that third-party bundles can get the most important git-related information given an IResource or maybe other objects such as ITypedElement. Obvious candidates are the repository and the git path of the item (path of a file within the git repository), maybe even the index state (modified, staged, conflicting, and so on).
Comment 1 Thomas Wolf CLA 2021-04-28 11:54:57 EDT
See the discussion in bug 572802.