Applying branch changes to a new branch in git

Blog

I am unsure how other people do this, but this is how I apply changes from one branch to a new branch when the original branch can't be rebased to master (say, when the original branch is thousands, or really, maybe just hundreds or tens of conflicting, commits behind master).

$ git co branch-no-longer-loved

If differences with master aren't causing rebase issues, can do this:

$ git rebase master
$ git diff master > ~/some-differences.diff

More likely, I'm doing this because I can't rebase to master. So, taking my changes back to where I diverged from master, say 3 checkins:

$ git diff HEAD~3 > ~/some-differences.diff

Of cleats and toenails

Blog

"Hey, Todd, you still play soccer a lot?"

"Yep."

"Do you have all of your toenails?"

"Heh. Yes, of course."

"Have you ever lost a toenail?"

"Does that still happen these days?"

"..."

"I heard my dad talk about how he used to lose toenails playing soccer. I don't think anyone has that problem any more."

"... Okay."

Apparently, crazy toenails are a thing of a previous generation, and not something that currently happens with modern shoe technology. I was unaware of these advances, and continue to do cleats incorrectly.

Shift

Book Notes

Okay, here's the blurb on the back of the book:

In 2007, the Center for Automation in Nanobiotech (CAN) outlined the hardware and software platform that would one day allow robots smaller than human cells to make medical diagnoses, conduct repairs, and even self-propagate. In the same year, the CBS network re-aired a program about the effects of propranolol on sufferers of extreme trauma. A simple pill, it had been discovered, could wipe out the memory of any traumatic event. At almost the same moment in humanity's broad history, mankind had discovered the means for bringing about its utter downfall. And the ability to forget it ever happened.

Doesn't really do the book justice. It's a background and continuation of Wool. I struggled to start with this book. Wool was great, and while I was interested in more of the Silo world Howey had created, I wanted the story to sit. It felt complete. This one starts out with how the Silo world was created. Given it starts out with politics and manipulation, I can't say I was overly enthusiastic about it. Okay, I wasn't. It took me a long time to get into this book.

I really like Howey's writing style, however, so I kept going. After I decided a couple days ago that I was going to finish a book, dammit, this is the one I chose, and I'm glad I did. I finished it, and finished it fast. It's good.

Yay, the book-finishing-drought is finally over! This is a great one to do it with, if you've read Wool. If you haven't read Wool, read it first, then read thing one. Next up, Dust.

So much for that group hike

Blog

I took the kids for a hike today. Which is to say, I drove the kids to a hiking spot, hopped out of the car, and had one of the two kids follow me.

The second one refused to leave the car. "I don't want to go on a hike," he said, while crossing his arms and entering his sulk mode. I stood there for a bit, holding the door open, debating my options. I'm bigger than he is by more than a factor of two. I could wrestle him out of his car seat, throw him under my arm and stomp down the trail. The other kid was watching me, waiting to see what I would do.

I closed his door, opened the driver's door, rolled down all the windows, closed the door, locked the car and walked away.

Kids are a simpler version of adults, but have the same basic requirement of control: they have to give you permission.

Pages