git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation/git-filter-branch: add a new commit-filter example
@ 2008-02-23 19:30 Miklos Vajna
  2008-02-23 19:45 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Miklos Vajna @ 2008-02-23 19:30 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

There is a commit-filter example already which skips commits but there is no
example on how to edit commit messages.

One can figure out this example by carefully reading the git-filter-branch and
git-commit-tree documentation but I think it isn't trivial so this example is
helpful.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---

The lack of such an example was noticed by dvorak on IRC.

 Documentation/git-filter-branch.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt
index e22dfa5..a035b9c 100644
--- a/Documentation/git-filter-branch.txt
+++ b/Documentation/git-filter-branch.txt
@@ -240,6 +240,12 @@ 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.
 
+To remove the 'git-svn-id' strings from commit messages in a repository created
+by git-svn:
+
+------------------------------------------------------------------------------
+git filter-branch --commit-filter 'sed "/^git-svn-id:/d" |git commit-tree "$@"'
+------------------------------------------------------------------------------
 
 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
-- 
1.5.4.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-25 14:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-23 19:30 [PATCH] Documentation/git-filter-branch: add a new commit-filter example Miklos Vajna
2008-02-23 19:45 ` Junio C Hamano
2008-02-23 22:04   ` Miklos Vajna
2008-02-24 10:53     ` Johannes Schindelin
2008-02-24 17:58       ` Junio C Hamano
2008-02-25 14:43         ` [PATCH] Documentation/git-filter-branch: add a new msg-filter example Miklos Vajna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).