# Enhanced Code Changes Calculation in TGA Report

<figure><img src="/files/uhcoVhpJEXPwbUtBIIR2" alt="" width="563"><figcaption><p>Code Changes Calculation Section </p></figcaption></figure>

**SeaLights is proud to introduce a significant enhancement to the Test Gap Analysis (TGA) report: the ability to calculate code changes across branches.**

Previously, TGA reports were limited to comparing code changes within the same branch. With this new feature, you can now gain deeper insights by analyzing code changes relative to a different branch, providing a more comprehensive understanding of the impact of specific modifications.

### **Key Benefits**

* **Tailored Analysis:** Compare code changes between branches to identify the specific impact of changes introduced in a particular branch.
* **Enhanced Insights:** Gain a more comprehensive understanding of how code changes affect test coverage and identify potential test gaps and quality risks.
* **Flexibility:** Choose the most appropriate reference branch for your analysis, allowing you to focus on specific areas of interest.

### **How It Works**

1. **Automatic Branch Detection:** SeaLights automatically identifies applications and branches where branching has occurred.
2. **Reference Build Selection:** When creating a new TGA report for a branched branch, you can choose between the following reference build options:
   * **Default Definition (Last Build Prior to Selected Range):** Use the last build within the selected date range as the reference.
   * **Latest Build in Branching Out Point:** Select the latest build from the point where the branch diverged from the main codebase.
3. **Code Changes Calculation:** The system will then calculate code changes between the selected reference build and the latest build in the selected timeframe, providing you with detailed insights into the modifications made.

By leveraging this new feature, you can gain a more comprehensive understanding of your codebase and make informed decisions regarding testing and quality assurance.


---

# 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/august-2024/enhanced-code-changes-calculation-in-tga-report.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.
