GIT:Controlling the view
Controlling the view
The TD/OMS Git view is sensitive to task and application selections from the work management view.
Task Selection
When a task is selected from the work management view the TD/OMS Git view will display it first in its own tree on the left side and on the right side it will try to select the repository that it has a branch to it. The repositories that will be searched and are available in the repository field, are the ones that are setup for the application of the task. If it can't find a branch for the task selected then it will select a repository that it is already cloned with the choice to start the task for this repository. If no repository is cloned either then it will not change the repository selection with the option to clone the repository that was lastly selected.
Under the selected task there will be also the tasks that have a branch in any of the available repositories for that application and every time another task is selected from inside the view the same rules will apply.
In this example we select the task 4 and automatically it selects a cloned repository and it informs us that the task doesn't have a branch for this repository yet.
Application Selection
When an application is selected from the work management view the TD/OMS Git view will display all the tasks for that application that have a branch in any of the available repositories and it will select the first from those repositories. If no task has a branch on any of the repositories then it will display no tasks but select the first repository it finds that has been cloned for that application. If no repository is cloned either then it will select the first repository available with the option to clone it.
In this case we select the GITDM application so it shows the Git Demo task that has a branch for the git_demo_php repository so it selects that repository and switches to that branch as well. Only that task is displayed because no other task on this application has a branch on any of the available repositories.