com.ibm.xtools.umldt.rt.api.egit.merge

Interface RTEGitCompareCommand

  • All Superinterfaces:
    RTAbstractCommand
    All Known Implementing Classes:
    RTEGitCompareCommandImpl


    public interface RTEGitCompareCommand
    extends RTAbstractCommand
    Defines interface for EGit Visual Compare command.

    Compare works on selection where selection is either array of IResource from current workspace or single File from Git repository. The logical or closure compare can be used only with UML resources from workspace and local reference must be set to Local in this case.

    The command provides support only for visual compare.

    Author:
    seroshki
    • Field Detail

      • LOCAL

        static final String LOCAL
        Content identifier for the local version. Can be used with setLocalRef().
        See Also:
        Constant Field Values
      • INDEX

        static final String INDEX
        Content identifier for the content staged in the index. Can be used with setRemoteRef()/setLocalRef().
        See Also:
        Constant Field Values
      • HEAD

        static final String HEAD
        Content identifier for the 'HEAD' version. Can be used with setRemoteRef()/setLocalRef().
        See Also:
        Constant Field Values
    • Method Detail

      • setRepository

        RTEGitCompareCommand setRepository(File repository)
        Set path to existing Git repository
        Parameters:
        repository - - path to Git repository. Path may or may not include '.git' folder. Paths '/dir1/dir2/dir3' and '/dir1/dir2/dir3/.git' are considered the same
      • setRemoteRef

        RTEGitCompareCommand setRemoteRef(String ref)
        Set branch/ref/commit for the compare operation. The compare will be performed between local ref and remote ref.
        Parameters:
        ref - - branch name, reference, commit id or Index
      • setLocalRef

        RTEGitCompareCommand setLocalRef(String ref)
        Set local branch/ref/commit for the compare operation.

        The default value is Local.

        Parameters:
        ref - - branch name, reference or commit id
      • setSelection

        RTEGitCompareCommand setSelection(org.eclipse.core.resources.IResource[] resources)
        Initialize current selection using array of IResource. Client may use IFile or IProject as selection. When using projects the command will extract model files from selection. Client may also use setFilter(String) to further refine current selection.
        Parameters:
        resources -
      • setSelection

        RTEGitCompareCommand setSelection(File file)
        Initialize current selection using File.
        Parameters:
        file - - file in Git repository with absolute or repository-relative path
      • setFilter

        RTEGitCompareCommand setFilter(String filter)
        Set filter for selection. Only resources matching filter will be processed
        Parameters:
        filter - - comma-separated list of workspace or repository-relative paths. Path can contain ? and * symbols.