{"thread":{"id":"14957","subject":"How to edit commit messages?","startedAt":"2008-08-12T12:38:32Z","lastAt":"2008-08-12T12:49:49Z","messageCount":4,"participants":["dr.chiarello@gmail.com","Miklos Vajna","Andreas Ericsson","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"86922","messageId":"g7s088$o1p$1@ger.gmane.org","threadId":"14957","inReplyTo":null,"subject":"How to edit commit messages?","fromName":"","fromEmail":"dr.chiarello@gmail.com","sentAt":"2008-08-12T12:38:32Z","receivedAt":"2008-08-12T12:38:32Z","isPatch":false,"sender":{"key":"dr.chiarello@gmail.com","avatar":null},"body":"Hi all,\n  what are the best solution to:\n1) interactively edit commit's messages (some or all)\n2) batch edit commit's messages (for example using sed)\n\nMy repo is not published yet, so there is no problem in rewriting all\nhistory.\n\nThanks in advance\n"},{"id":"86925","messageId":"48A185D0.3070003@op5.se","threadId":"14957","inReplyTo":"g7s088$o1p$1@ger.gmane.org","subject":"Re: How to edit commit messages?","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-08-12T12:45:04Z","receivedAt":"2008-08-12T12:45:04Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"dr.chiarello@gmail.com wrote:\n> Hi all,\n>   what are the best solution to:\n> 1) interactively edit commit's messages (some or all)\n> 2) batch edit commit's messages (for example using sed)\n> \n> My repo is not published yet, so there is no problem in rewriting all\n> history.\n> \n\ngit filter-branch --msg-filter 'sed s/foo/bar/g' master\n\nto replace all occurrences of foo with bar in all commit\nmessages for all commits made on the master branch.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"86924","messageId":"20080812124557.GB18960@genesis.frugalware.org","threadId":"14957","inReplyTo":"g7s088$o1p$1@ger.gmane.org","subject":"Re: How to edit commit messages?","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-08-12T12:45:57Z","receivedAt":"2008-08-12T12:45:57Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Tue, Aug 12, 2008 at 02:38:32PM +0200, dr.chiarello@gmail.com wrote:\n> 1) interactively edit commit's messages (some or all)\n\ngit rebase -i\n\n> 2) batch edit commit's messages (for example using sed)\n\ngit filter-branch\n"},{"id":"86926","messageId":"vpqd4kepfde.fsf@bauges.imag.fr","threadId":"14957","inReplyTo":"g7s088$o1p$1@ger.gmane.org","subject":"Re: How to edit commit messages?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2008-08-12T12:49:49Z","receivedAt":"2008-08-12T12:49:49Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"dr.chiarello@gmail.com writes:\n\n> Hi all,\n>   what are the best solution to:\n> 1) interactively edit commit's messages (some or all)\n\n  git rebase -i\n\ncan help.\n\n> 2) batch edit commit's messages (for example using sed)\n\n  git filter-branch --msg-filter sed 's/foo/bar/'\n\nshould do it.\n\n-- \nMatthieu\n"}]}