Let's imagine the following scenario:
1. I create a new branch (feature_X) and switch to the develop branch.
2. I make a change ... git notices that two files have changed:
Once the x2.pbl file and once the source file from ws_objects. I commit this change.
3. I switch back to the develop branch. There I make a change in the same place and elsewhere ... git notices again that two files have changed. the x2.pbl and the source file located in ws_objects.
Now, the changes from feature_X branch to merge into the develop branch. As expected, we get a merge conflict. There are two files in conflict:
1. the x2.pbl and 2. the source file (from ws_objects).
the source file can be merged after a manually adjust, but how do I deal with the x2.pbl? Since this is a binary file I can either choose between the x2.pbl from the develop branch or the x2.pbl from feature_X.
If I select the x2.pbl from feature_X, the changes I made later in develop are gone. If I select the x2.pbl from develop, the changes from the feature_x branch will be lost.
what am I doing wrong here? Surely there is a possibility that I will regenerate the .pbl after I have adapted the source file from the ws_object folder? Should not this happen automatically?
How do I get Powerbuilder configured to regenerate the x2.pbl as soon as the source file is changed from ws_objects?
BTW: i am using source-tree to work with git and the branching
so i have to use the PB ide git functions and cant use a Tool like Sourcetree or the regular bash for commiting, except for switching Branches, right?
I think that's because I did the changes with another editor in the source file and he saved them with a different character encoding.
So my question: Where can I access the source files in ws_obects via Powerbuilder?
You can use any external tool that allows you to choose which files to commit
Files in PB can be edited with Tools -> File Editor (outside PB you have to make sure the editor does not change the format of the source file)