Feat: add commit amend & Force push
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
- Implement getCommit (call get single commit from commitRESTAPI)
- implement getCommitDiff (call get commit diff from commitRESTAPI)
- use both methods to implement amend logic
- Implemented amend logic
- Merge commit diff with current changes
- current changes will override commit diff if there is a conflict
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related
Screenshots or screen recordings
How to set up and validate locally
Numbered steps are found in https://gitlab.com/gitlab-org/gitlab-web-ide/-/blob/main/docs/contributing/development-environment-setup.md
Edited by Ahmed_Kashkoush