This page has moved:
Example: Moving up to a few commits to another branch
Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.
cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated
git checkout branch-B git cherry-pick X git cherry-pick Y
I have a simple Linux graphical desktop environment, using the Openbox window manager and tint2 panel. I use gsimplecal to display a small GTK Calendar widget when I click the panel clock. When I click the clock again, the calendar disappears.
gsimplecal is written in C++ but I thought it might be fun to rewrite it in Python.
The hardest part was detecting the running process, so a script would find another instance of itself then kill that instance and exit, but run if there was no existing instance. I came up with this fairly universal solution:
#!/usr/bin/python from os import getpid
I thought this was a fantastic post, it goes right down to binary and logical operators then back up again.
After understanding the alignment, Z then writes three other ways of doing the same thing, disassembles them and benchmarks them.
Discussing this on HN, I said:
I have banned myself from using printfs to figure out things like this. Instead I would use a debugger and breakpoints to view the live variables in their different data formats.