again a new branch #44
Replies: 3 comments 27 replies
-
Ha. I was just coming on to talk about branching and stuff. I pulled down your earlier changes to "implementLiveObjectValid" (we should talk more about filtering I'm actually kind of guessing about how to fix what I see because it may not actually an issue except for how I'm interpreting the diffs. But I've never really played in the Sourcetree GUI before. At work, I just use the terminal more or less. So I'm learning as I go too. But if I checkout my local master, the (workspace>History) GUI shows the last commit now on master was one changed file (EncoderController) with the comment "comment cleanup, minor refactoring". If I then right click "dsplayParms" (under Branches) and select "Diff against current", the GUI shows me the only file changed (versus master) is MackieC4 and the diff shows the one change I committed there. But when I right click on "implementLiveObjectValid" and select "Diff against current", the GUI shows me several changed files and diffs like the It makes me suspect you haven't exactly kept up with your local Pulls or branching or whatever. I can see where you branched off of "implementLiveObjectValid" to create "02.04EXP". But I recommend you stash or commit your local changes, then step back and take a health-check breath. Checkout your local master branch and do a Pull from origin (console: The reason I came on to talk about branches and stuff was to say I'm going to create a "shared-dev" branch and Push it up. We can use "shared-dev" as a place to pass changes back and forth (up and down) that is a sort of a "pre-master master" branch, but more about "beta testing" or whatever regressions before actually going to master with some set of changes. Some things might go straight into "shared-dev" right? Other bigger changes might stay on their own branches a awhile as we (you, me, or both of us) patch bugs or whatever. In general then, you and I would need to ensure that whenever any commits merge (get Pulled) into master and/or shared-dev at origin, we Pull them down to our local repository copies and update (like deleting branches no longer needed because they are "copies" of master anyway) before creating any new branches. It's actually kind of an easy practice, if you make a habit of checking out master (or shared-dev?) and Pulling from origin to get up-to-date before creating new branches. It also helps to just sort of habitually, regularly Pull from "master" into whatever branch you have checked out. Seeing "already up-to-date" in the console is nice reassurance. I want to create "shared-dev" from "master" and then merge "implementLiveObjectValid" into "shared-dev" and make that the first "shared-dev commit". But I think you probably need to catch "implementLiveObjectValid" up with master, and I need to get those changes before I start "shared-dev". Right now, I'm guessing the "track block change", the "filter '.' and '-' change", and the "LiveUtils changes" would be the only differences between master and "shared-dev". and all other branches could be deleted except "02.04EXP" because you have "new (un-merged) changes" there. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
This diff is showing me, there are 5 files with differences between "current and master", and if I select the EncoderController file listing, each individual difference appears to the right labelled as "Hunks 1 - 10". Do you see the same 10 "hunks of diff" if you follow the same or similar 6 step recipe? If so, I'm talking about hunks 4 and 5 specifically. ...and now I think I've figured out it was indeed me who was totally confused by what the GUI is/was showing me. My interpretation of the green and red "diff indicator" highlights was reversed, backwards. The green highlight means "this is a 'hunk from the current branch' that is different from the red highlighted "hunk" of the branch in comparison. For some reason my default interpreter jumped to "red = current" instead of "green = current" and confused the fuck out of me. I'm going to take some time to unwind from that confused state, and reassess the situation. I suspect a "shared-dev" branch will be appearing at origin shortly... |
Beta Was this translation helpful? Give feedback.
-
Ok Ok Ok... :) Even the "Graph" in the GUI is making some sense to me now. "shared-dev" is 8 commits ahead of "master" (the same 8 commits that implementLiveObjectValid is ahead) and I pushed "shared-dev" up to origin. I deleted all "my" branches from origin and all branches from my local except "master" and "shared-dev". I'm thinking we should treat the "master" branch like the "release" branch, even though we haven't "released" anything yet; and then we treat "shared-dev" like our "wip master". If you feel like your current "unit of work" is complete and "shared-dev" is ready to release, then it's ready for "master". On the other hand, if we're still not really on the release bandwagon, frequent "updates to the master branch" (the "fake release" version we pointed people to on the wiki) can wait until we see evidence we're not alone here. :) If I were to now Pull down your "04.02EXP" Branch from origin. I think our repositories would be in sync in terms of having each other's latest work. Would you agree from your perspective? If so, then both "23.03.2021" and "implementLiveObjectValid" branches can be deleted from origin without any "current work" being "lost". True? I hope so, but I will stop there after one more comment. IMHO, you could have chosen branch names that contain more information. I know hindsight is 20-20, but what if you had Pushed (to origin) a first branch named "cutLiveUtils" and a second branch named "cutClipsAndSlots". I could easily be accused of being a pot blaming a kettle for being "cookware" because I struggle with "good branch naming" myself. Especially before I have even got my hands dirty. I don't know what a good name will be because I don't know exactly what I'm going to do. If anything is different, let me know... |
Beta Was this translation helpful? Give feedback.
-
@BilldarBagdar 2 questions:
Beta Was this translation helpful? Give feedback.
All reactions