Bron Gondwana <brong <at> brong.net> writes: > My toolkit is missing a tool. I've never seen it > or anything like it, but I can describe it - and > hopefully someone else knows if it exists. > > It's basically a combination of git rebase -i and > git add -p. Something that allows you to split > either a single patch or a series of patches that > had bad "waypoints". Right, this is a use-case I also commonly have, and nowadays I mostly use the rebase -i approach already described, combined with the use of git-gui for easy selection. One additional trick I sometimes use, when I have reordered/squashed/split a couple of commits, is things like "git checkout @{1}" to catch any missing changes I could have lost while working. Some time ago I was using stgit extensively, and had developped a couple of scripts to support that workflow. You will find them in the contrib/ directory of the stgit repo, and in the stgit-contrib debian package. Note that I did not use them much lately, and they may need some tweeking to work with recent git/stgit. The still-relevant scripts are: * stg-fold-files-from: pick specific hunks from another patch up the stack * stg-dispatch: dispatch specific hunks into another patch down the stack -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html