Skip to content

Commit

Permalink
Documentation/git-filter-branch: add a new msg-filter example
Browse files Browse the repository at this point in the history
There were no example on how to edit commit messages, so add an msg-filter
example.

Signed-off-by: Miklos Vajna <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Miklos Vajna authored and gitster committed Feb 25, 2008
1 parent ce4a7bf commit ed10d9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/git-filter-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ committed a merge between P1 and P2, it will be propagated properly
and all children of the merge will become merge commits with P1,P2
as their parents instead of the merge commit.

You can rewrite the commit log messages using `--message-filter`. For
example, `git-svn-id` strings in a repository created by `git-svn` can
be removed this way:

-------------------------------------------------------
git filter-branch --message-filter '
sed -e "/^git-svn-id:/d"
'
-------------------------------------------------------

To restrict rewriting to only part of the history, specify a revision
range in addition to the new branch name. The new branch name will
Expand Down

0 comments on commit ed10d9a

Please sign in to comment.