{"thread":{"id":"24572","subject":"Git CVS Import Questions","startedAt":"2010-07-29T14:17:38Z","lastAt":"2010-07-30T20:17:06Z","messageCount":2,"participants":["Samir Faci","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"146711","messageId":"AANLkTin_d_wKxyJDMbjz4vFacr6GNYzE_aUGi2vbXW3V@mail.gmail.com","threadId":"24572","inReplyTo":null,"subject":"Git CVS Import Questions","fromName":"Samir Faci","fromEmail":"samir@esamir.com","sentAt":"2010-07-29T14:17:38Z","receivedAt":"2010-07-29T14:17:38Z","isPatch":false,"sender":{"key":"samir@esamir.com","avatar":null},"body":"I have a question about git cvs's import.\n\nI have the following setup in ~/.bashrc:\n\nexport CVS_RSH=ssh\nexport CVSROOT=cvs:/cvs\nexport CVS_RSH CVSROOT\n\nand I can do a cvs import using git by doing something along these lines:\n\nmkdir bar; git cvsimport -v Foo/Bar   which checks out the history of\nmodule Bar into the current directory (in this case bar)\n\nnow... if I do this again in another directory\n\nmkdir bar2; git cvsimport -v Foo/Bar  which repeats the same process\nthe hashes don't match up.\n\ncase in point:\ngit log --oneline | head -n 1\n2fa5b70 ChangeLog:     * Fixing build file syntax error.\ngit log --oneline | head -n 1\nccef115 ChangeLog:     * Fixing build file syntax error.\n\n\nNow, correct me if I'm wrong.. but I thought the hashes were generated\nbased on the content of the diff.  So shouldn't two cvs checkouts\ncontaining the same data\nhave the same hashes?   ie.  If a git commit is generated based on a\nparticular diff, then the hash should always be the same, should it\nnot?\n\nAm I missing something?  I'm just trying to understand the behavior...\n-- \n--\nSamir Faci\n*insert title*\nfortune | cowsay -f /usr/share/cows/tux.cow\n"},{"id":"146799","messageId":"20100730201706.GC2448@burratino","threadId":"24572","inReplyTo":"AANLkTin_d_wKxyJDMbjz4vFacr6GNYzE_aUGi2vbXW3V@mail.gmail.com","subject":"Re: Git CVS Import Questions","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-07-30T20:17:06Z","receivedAt":"2010-07-30T20:17:06Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi Samir,\n\nSamir Faci wrote:\n\n> mkdir bar; git cvsimport -v Foo/Bar   which checks out the history of\n> module Bar into the current directory (in this case bar)\n> \n> now... if I do this again in another directory\n> \n> mkdir bar2; git cvsimport -v Foo/Bar  which repeats the same process\n> the hashes don't match up.\n\nMaybe the dates are different?  I would suggest comparing the result of\n“git fast-export HEAD” from each.\n\n> Now, correct me if I'm wrong.. but I thought the hashes were generated\n> based on the content of the diff.\n\nClose, but not quite.  This might help: http://progit.org/book/ch9-2.html\n\nHave fun,\nJonathan\n"}]}