# Enhanced TGA Support for Branching Scenarios

We have updated the Test Gap Analysis (TGA) report to provide greater flexibility for teams working with complex branching workflows. This improvement allows you to more accurately define your "reference build" when analyzing code changes in a branch that has diverged from your main codebase.

***

#### Smarter Reference Build Selection

When creating a new TGA report, SeaLights now automatically detects if "branching out" has occurred for your selected application and branch. If detected, you will see a new Code Changes Calculation section with two distinct options for your reference build:

* Default Definition (Last Build Prior to Selected Range): Maintains standard behavior by using the last build executed in the current branch immediately before your report's start date.
* Latest Build in Branching Out Point: A new capability that allows you to compare your current state against the exact point where your branch diverged from the parent branch. This is ideal for identifying gaps relative to the original "base" code.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/whats-new/november-2024/enhanced-tga-support-for-branching-scenarios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
