News for hackers. Stuff that matters.
Re:git cascade and git forward-merge by languagehacker on Tuesday April 01, 2014 @02:27PM (#7510551)
Forward-merge sounds useful, but can't you just fetch from the remote and then merge the remote -- e.g. git merge origin/shared-branch ?

Cascade, on the other hand, sounds way too risky for me to want to use. The few seconds of time you're saving are an investment into not fucking up something huge.

In general, I'm not a fan of anything that's designed specifically to make it easier for you to skirt a version control/deployment workflow you've established. That just puts unnecessary effort into treating the symptoms of a bad workflow (or an unrealistic stakeholder) when you should be working to address the root cause instead.

Re:git cascade and git forward-merge by mnarayan01 on Tuesday April 01, 2014 @09:09AM (#7507770)
Today was probably not the best day to submit this.
Re:git cascade and git forward-merge by twic on Tuesday April 01, 2014 @09:35AM (#7507993)
This is nice.

One project i work on has two branches, master and release. We develop on master, then branch release from master when we want to make a release. If we find bugs during pre-release testing, we fix them on release, then immediately merge release back on to master. Note that this ensures that master is always a descendent of release, which means it's always safe to re-branch release. We don't use named feature branches; we make commits straight to release (and master). Could we use git-cascade to automate the immediate merge from release back to master?

Re:git cascade and git forward-merge by salgernon on Tuesday April 01, 2014 @11:25AM (#7508946)
>> If we find bugs during pre-release testing, we fix them on release, then immediately merge release back on to master

As a self diagnosed Aspie, I can't tell if this article or your comment are April 1st jokes. Which I guess is kind of the point of April 1st jokes.

Re:git cascade and git forward-merge by gcr on Tuesday April 01, 2014 @11:56AM (#7509223)
Meh. That seems sensible to me, I guess, if it's something that the developer will guarantee won't change anything (eg. a typo in a translated string). I think "automatically" generated commits like this should clearly be marked as such so if something does go wrong, it's possible to place the blame.
Re:git cascade and git forward-merge by salgernon on Tuesday April 01, 2014 @01:19PM (#7509941)
Back in days of yore, we decided to ship and updated the copyright string in the .text section of the product binary - from "Copyright 1989 SMI" to "Copyright 1991, Sun Microsystems", which subsequently changed the alignment of other sections and led to a 10% performance penalty (fixed by regenerating the order file.)

I've never thought there was such a thing as safe fix ever since...

Re:git cascade and git forward-merge by cool-RR on Tuesday April 01, 2014 @09:38AM (#7508030)
Yep. Except note that it won't merge from `release` to `master`, because the script doesn't know whether you guys pushed other commits to `release` that you don't want to have on `master`. So it'll push just the source commit to both `release` and `master`.
Re:git cascade and git forward-merge by maaaats on Tuesday April 01, 2014 @09:12AM (#7507799)
How would one normally achieve the effect of the git forward-merge in the command line?

My IDE usually does that for me, so never really considered it an issue to change branch with an unclean tree.

Re:git cascade and git forward-merge by cool-RR on Tuesday April 01, 2014 @09:16AM (#7507838)
I think you'd have to check out the target branch (stashing any changes if you had them), do `git merge source_branch`, and then check out the original branch you were on, and pop stash if you saved one.

Alternatively if the merge is a simple fast-forward you can just do `git push . source:destination`, which is what `git forward-merge` does in that case too.

Re:git cascade and git forward-merge by freshprince on Tuesday April 01, 2014 @09:16AM (#7507835)
Works only for fast-forward merges:

    git fetch origin master:master
Re:git cascade and git forward-merge by stonewhite on Tuesday April 01, 2014 @09:11AM (#7507794)
The name 'git cascade' made think that it was about updating feature branches when a mainline branch was committed to.
Re:git cascade and git forward-merge by cool-RR on Tuesday April 01, 2014 @09:17AM (#7507854)
If the feature branches are defined in the cascade order, it'll do that.

This gives me the idea of implementing wildcards in the cascade order, so feature branches will automatically be in the cascade order. Pull requests welcome.