git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-svn: add hook to allow modifying the subversion commit message

From
Michael Lutz <michi@icosahedron.de>
Date
Nov 1, 2011, 20:45 UTC
Message-ID
<4EB05A77.4050901@icosahedron.de>
In-Reply-To
<20111101202806.GB29769@dcvr.yhbt.net>
Am 01.11.2011 21:28 schrieb Eric Wong:
Show 6 quoted lines
> I'm not convinced this is a good feature to support.  We already have
> --no-metadata to remove git-svn-id: lines and I hate that feature
> because it introduced extra variables for testing/debugging/recovery.
> 
> Metadata in the commit message is important, if you want to remove
> it after-the-fact, there's git-filter-branch.

The actual use case here is to replace a custom hack that adds some info to the git commit message. In this case filter-branch isn't an option because git-svn continuously pulls from the subversion master repository. Additionally, especially for *adding* information, the information might not be available later any more.

The only current metadata (the git-svn-id line) isn't affected by this change as git-svn outputs it separately after the svn commit message that the proposed hook can modify.

I fully realize that this is a rather specialized feature but I wanted to publish it in case somebody else finds a use for this as well.

Michael Lutz
Previous: Eric Wong
Message 3 of 3 in “git-svn: add hook to allow modifying the subversion commit message”
  1. git-svn: add hook to allow modifying the subversion commit messageMichael Lutz, Oct 21, 2011
  2. Eric WongNov 1, 2011
  3. Michael LutzNov 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.