The topgit patch queue manager for Git has a few bugs when used on BSD-based systems, which includes Mac OS X. Specifically, topgit assumes GNU versions of sed and mktemp. I’ve forked topgit on Github and patched these issues.
I’ve submitted a pull request upstream to Petr Baudis but haven’t heard anything back yet.