PromucFlow_constructor/app
Diljit ce974faab6
chore: add feature flag to the git reset optimisation (#39988)
## Description
Toggle the [remove extra git resets
changes](https://github.com/appsmithorg/appsmith/pull/39758) in the new
git apis behind a feature flag `release_git_reset_optimization_enabled`.


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.Git"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/14188261678>
> Commit: 5f3ce61533459f6cc47d01af718eb888e1316a9e
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14188261678&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Git`
> Spec:
> <hr>Tue, 01 Apr 2025 06:48:38 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a feature flag for enhanced Git reset optimization,
enabling optional preservation of local changes during Git operations.

- **Refactor**
- Updated Git workflows to offer more flexible handling of uncommitted
changes and improved error management.

- **Tests**
- Adjusted test scenarios to validate the refined Git behavior and
ensure consistent operation under the new settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-01 13:32:25 +05:30
..
client feat: cloud billing sign up flow integration (#39993) 2025-04-01 10:38:11 +05:30
server chore: add feature flag to the git reset optimisation (#39988) 2025-04-01 13:32:25 +05:30
util chore: Revert "chore: delete redundant files" (#35022) 2024-07-18 16:18:10 +05:30