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

Re: git-svn blame change- doc confusion

From
Steven Grimm <koreth@midwinter.com>
Date
May 12, 2008, 06:33 UTC
Message-ID
<906678E9-D203-484B-8416-1C6079C74B2D@midwinter.com>
In-Reply-To
<449c10960805112105w2e362ea7l9b11c53c47952501@mail.gmail.com>
On May 11, 2008, at 9:05 PM, Dan McGee wrote:
> Here is the commit snippet. Reading the commit message, I would assume
> the default format with no options is SVN, and you need to use the
> --git-format arg to get the GIT format.

Yes, that's right. But note that "git format" does not mean "identical to the output of git blame" -- it means "lines are formatted the same way they are in git blame," meaning the revision ID (which in this case is an svn version number or 0 for any lines for which there isn't history in svn) then the committer name and commit timestamp enclosed in parentheses, then the line number with a trailing closing paren, then the contents of the line.

The svn format, by contrast, is the svn commit number, then the committer name, then the contents of the line.

> However, reading the --git-format description tells me something real
> weird- that using --git-format will give me SVN revision numbers and
> not git hashes, and something about revision 0?

Yes, that's also right. If you want git hashes, just run "git blame", which will work exactly the same as in a non-svn-linked git repository -- the whole point of having "git svn blame" is to view changes in terms of svn revisions rather than git hashes.

-Steve
Previous: Dan McGee
Message 2 of 2 in “git-svn blame change- doc confusion”
  1. Dan McGeeMay 12, 2008
  2. Steven GrimmMay 12, 2008

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.