The original implementation was creating an orphan branch each time. I don't really care about tracking what was published. But, may be it is useful. So, changed the implementation to incorporate your suggestions, @asmeurer