Replies: 1 comment 2 replies
-
Hi! Thanks for the discussion topic. I would say please read the status branch section of the readme. https://github.com/ProjectBorealis/UEGitPlugin?tab=readme-ov-file#status-branches---conceptual-overview For feature branches, you can read a community example of how to do this for all remote branches here: #177 (comment) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I frequently run into the following problem:
I work on some branch called
feat/my-cool-feature
, where I modify and commit changes to some file. The engine locks that file for me automatically. Now, I get a request to provide a bug fix or quickly prototype something on another branch. I end up modifying the same file on the other branch, unaware of the fact that it was already modified onfeat/my-cool-feat
. After all, I was never warned that this could be dangerous by the engine or the plugin, because the file was locked by myself. After a while, I try to merge both branches but I end up with a merge conflict because the file has diverged.Currently, I am working on a solution to this problem. My goal is to update the source control status icon and display a notification that warns me about modifying a file. I already have a very basic proof-of-concept implementation working that involves writing each file that is locked together with the branch it was locked to a local file. However, this only works as long as locking files is done from inside the editor. I could also try solving this on the LFS executable's level instead.
When looking up this topic online, I can't find anyone else with the same problem. I wonder if I am missing a very obvious solution, but as far as I know, Git LFS does not track the branch on which a file was locked, which should be necessary to address this issue. While there are tracking branches that could technically help with this, I think they are not a good approach to this problem.
I wonder if anyone has opinions on this topic in general, or if it's something that would be relevant to other users too.
Beta Was this translation helpful? Give feedback.
All reactions