dajiaohuang opened a new pull request, #9110:
URL: https://github.com/apache/hop/pull/9110

   ## Summary
   
   The Git perspective's file-level Revert and Cherry-pick actions both use 
`UIGit.restorePathFromCommit`, which could replace the selected file while 
staged or unstaged local edits were present. Check the selected path's JGit 
status before restoring or removing it and refuse with a commit-or-stash 
message when that path is dirty. Unrelated dirty files do not block the 
operation.
   
   Fixes #8935.
   
   ## Verification
   
   - `mvnw.cmd -B -pl plugins/misc/git spotless:apply`
   - `mvnw.cmd -B -Pskip-uitest -pl plugins/misc/git -am -Dtest=UIGitTest 
-Dsurefire.failIfNoSpecifiedTests=false test` (Java 21): 63 tests passed, 0 
failures, 0 errors.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to