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

Re: [PATCH] Let git-svnimport clean up SVK commit messages.

From
DODave O'Neill <dmo@roaringpenguin.com>
Date
Jun 21, 2007, 21:58 UTC
Message-ID
<20070621215808.GD21065@magnesium.roaringpenguin.com>
In-Reply-To
<1182438000.4031.11.camel@lt21223.campus.dmacc.edu>
On Thu, Jun 21, 2007 at 10:00:00AM -0500, Jeffrey C. Ollie wrote:
Show 8 quoted lines
> This quickie Python script should convert the "tag branches" to regular
> Git tags:
> 
>         import os
>         refs = os.popen('git-for-each-ref --format="%(objectname)%00%(refname)%00" refs/remotes/tags')
>         for line in refs:
>             [sha, ref] = line.split('\0')[:2]
>             os.system('git tag %s %s' % (ref[18:], sha))

Thanks! I'll give that a try. It would be nice if this sort of cleanup were part of git-svn in some way, though. I doubt I'll be the last person wanting an easy conversion from SVN.

Cheers, Dave

Previous: Jeffrey C. OllieNext: Sam Vilain
Message 5 of 8 in “Let git-svnimport clean up SVK commit messages.”
  1. Let git-svnimport clean up SVK commit messages.Dave O'Neill, Jun 21, 2007
  2. Steven GrimmJun 21, 2007
  3. Dave O'NeillJun 21, 2007
  4. Jeffrey C. OllieJun 21, 2007
  5. Dave O'NeillJun 21, 2007
  6. Sam VilainJun 21, 2007
  7. Dave O'NeillJun 21, 2007
  8. Let git-svnimport and git-svn clean up SVK commit messagesDave O'Neill, Jun 21, 2007

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.