* Nick Andrew <n...@nick-andrew.net> [2011-08-02 15:44:02 +1000]: > If it's a problem with leaving the editor open with only changed files, > then I can suggest something like this: > > vim -o $(git status --porcelain | awk ' /^ M/ { print $2 } ')
* Erik de Castro Lopo <mle+s...@mega-nerd.com> [2011-08-02 18:07:11 +1000]: > Assuming that you are keeping this in git, why not just do the > following: > > a) Make sure everything has been commited. > > b) Use sed/perl/python/whatever to do the changes on the command > line. > > c) Use git with an external graphical diff program to review the > changes. Thanks guys for your suggestions! I like the idea of combining sed/git/vim: git commit -m "cleanup" sed 's/foo/bar' * vi `git st -s | grep '^ M' | cut -c4-` # edit changed files Eric, I'll also check out mgdiff. -- Sonia Hamilton http://soniahamilton.wordpress.com http://www.linkedin.com/in/soniahamilton
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html