On Mon, Apr 4, 2011 at 8:00 PM, Ramkumar Ramachandra <artagnon@xxxxxxxxx> wrote: > To split a big commit, I simply reverse-diff-apply the changes that I > don't want in the big commit, and I stage all changes. ÂThen, I again > reverse-diff-apply all the staged changes, and keep that in the > unstaged portion. Won't work for me. The reverse part would be way larger than the to-commit part. > ... > I can afford to do this kind of jugglery very easily because I use > Magit with Emacs. ÂAfter highlighting the relevant portions, > reverse-diff-apply is one keystroke :) Hmm.. interesting. Never got around to actually use magit. I may have a good reason now. > But yes, you're probably right- > there should be an easier way to do this. ÂMaybe a 'git split' that > allows you to interactively select the portions of an existing commit > that you'd like to exclude from the commit and turn into a new commit? Hmm..yeah something like grep for chunks, then automatically splitting those chunks out would be nice. I have another use for such a tool too. When .po files are automatically updated by intltool (gnome translation helper tool), comment lines are all changed because they contain source line and those line likely change. With this tool I can filter out comment-only changes. Thanks for the idea. -- Duy -- 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