Re: git-svn blame change- doc confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux