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

Re: git-svn commit id.

From
Andreas Ericsson <ae@op5.se>
Date
May 28, 2008, 14:41 UTC
Message-ID
<483D6F10.5000403@op5.se>
In-Reply-To
<1211983320.15736.11.camel@omicron.ep.petrobras.com.br>
Victor Bogado da Silva Lins wrote:
> I have two git-svn repositories here and I noticed that the same commit
> have different ids in them. How this came to be, both commits share the
> exact same git-svn-id and are the same (as far as I know). 
> 

If the have exactly the same history leading up to them, source trees and commit object (including timestamps), the only way they can be any different is if you've run into a bug in the SHA1 libraries.

If either of the above three are different though, you *will* end up with different commits.

Try doing "git cat-file commit <sha1-of-one-commit>" and then "git cat-file commit <sha1-of-other-commit>". If you take a diff between the two, you'll see how they differ (my guess would be the timestamps)

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Victor Bogado da Silva LinsNext: Santi Béjar
Message 2 of 4 in “git-svn commit id.”
  1. Victor Bogado da Silva LinsMay 28, 2008
  2. Andreas EricssonMay 28, 2008
  3. Santi BéjarMay 28, 2008
  4. Victor Bogado da Silva LinsMay 28, 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.