On 27/02/06, Catalin Marinas wrote: > An idea (untested, I don't even know whether it's feasible) would be to > check which patches were merged by reverse-applying them starting with > the last. In this situation, all the merged patches should just revert > their changes. You only need to do a git-diff between the bottom and the > top of the patch and git-apply the output (maybe without even modifying > the tree). If this operation succeeds, the patch was integrated and you > don't even need to push it. I attached another patch that should work properly. It also pushes empty patches on the stack if they were merged upstream (a 'stg clean' is required to remove them). This is useful for the push --undo command if you are not happy with the result. I'll try this patch for a bit more before pushing into the repository. -- Catalin