@matheusbsbs / matheus-bagliano / commits / ed10d9aa3f
Fork 0

Documentation/git-filter-branch: add a new msg-filter example

There were no example on how to edit commit messages, so add an msg-filter example. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Feb 25, 2008 at 15:43 UTC ed10d9aa3f771ad343df5aa50d9004945f7a4e56
1 file changed +9
Documentation/git-filter-branch.txt
+9
@@ -240,6 +240,15 @@ committed a merge between P1 and P2, it will be propagated properly
240 and all children of the merge will become merge commits with P1,P2
241 as their parents instead of the merge commit.
242
243 +You can rewrite the commit log messages using `--message-filter`. For
244 +example, `git-svn-id` strings in a repository created by `git-svn` can
245 +be removed this way:
246 +
247 +-------------------------------------------------------
248 +git filter-branch --message-filter '
249 + sed -e "/^git-svn-id:/d"
250 +'
251 +-------------------------------------------------------
252
253 To restrict rewriting to only part of the history, specify a revision
254 range in addition to the new branch name. The new branch name will