{"thread":{"id":"26932","subject":"compare log of two different repos","startedAt":"2011-03-30T19:49:16Z","lastAt":"2011-03-31T19:34:32Z","messageCount":4,"participants":["Sri","Michael J Gruber","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"164718","messageId":"1301514556812-6224714.post@n2.nabble.com","threadId":"26932","inReplyTo":null,"subject":"compare log of two different repos","fromName":"Sri","fromEmail":"nkf364@motorola.com","sentAt":"2011-03-30T19:49:16Z","receivedAt":"2011-03-30T19:49:16Z","isPatch":false,"sender":{"key":"nkf364@motorola.com","avatar":null},"body":"Hi\nThis is my scenario:\n-  Server has 2 different repos say x & y\n- I created a branch out of x ( say xx) and a branch out of y (say yy)\n- Now I made changes to xx/folder1/file1- change 1and commit it ;then I made\nchanges to to yy/folder1/file1 -change 1 and yy/folder1/file 1 -change 2 and\ncommit it ( Folder 1,file 1, change 1 are same in both xx and yy)\n- Now I want the log of unique commits between both branches ( which will be\nchange 2 commit in yy)\n\nHow do I get this using GIT? Right now am doing it manually which is very\ntedious...\n\nThanks\nSS\n\n--\nView this message in context: http://git.661346.n2.nabble.com/compare-log-of-two-different-repos-tp6224714p6224714.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"164758","messageId":"4D941991.6070707@drmicha.warpmail.net","threadId":"26932","inReplyTo":"1301514556812-6224714.post@n2.nabble.com","subject":"Re: compare log of two different repos","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2011-03-31T06:05:05Z","receivedAt":"2011-03-31T06:05:05Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Sri venit, vidit, dixit 30.03.2011 21:49:\n> Hi\n> This is my scenario:\n> -  Server has 2 different repos say x & y\n> - I created a branch out of x ( say xx) and a branch out of y (say yy)\n> - Now I made changes to xx/folder1/file1- change 1and commit it ;then I made\n> changes to to yy/folder1/file1 -change 1 and yy/folder1/file 1 -change 2 and\n> commit it ( Folder 1,file 1, change 1 are same in both xx and yy)\n> - Now I want the log of unique commits between both branches ( which will be\n> change 2 commit in yy)\n> \n> How do I get this using GIT? Right now am doing it manually which is very\n> tedious...\n\nYou could add one as a \"remote\" to the other, or both as remotes to a\nnew repo, and then use\n\ngit log --cherry-mark xx...yy\n\nor \"--cherry-pick\" or the \"cherry\" command.\n\nMichael\n"},{"id":"164805","messageId":"4D94A857.3010005@drmicha.warpmail.net","threadId":"26932","inReplyTo":"AANLkTimKLx--DeWdaunm5cGEax6=xQ8XV_YMOFSPPJ9K@mail.gmail.com","subject":"Re: compare log of two different repos","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2011-03-31T16:14:15Z","receivedAt":"2011-03-31T16:14:15Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Sridevi Soundarraju venit, vidit, dixit 31.03.2011 17:56:\n> Hi\n> Can you please tell me how to add one as a remote to the other?\n> \n> Thanks\n> SS\n\nPlease see \"git help remote\" (add), and please don't cull list from cc:,\nand please don't top-post. Thanks!\n\nMichael\n"},{"id":"164828","messageId":"m3r59n3x0d.fsf@localhost.localdomain","threadId":"26932","inReplyTo":"1301514556812-6224714.post@n2.nabble.com","subject":"Re: compare log of two different repos","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2011-03-31T19:34:32Z","receivedAt":"2011-03-31T19:34:32Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Sri <nkf364@motorola.com> writes:\n\n> Hi\n> This is my scenario:\n> - Server has 2 different repos say x & y\n> - I created a branch out of x ( say xx) and a branch out of y (say yy)\n> - Now I made changes to xx/folder1/file1- change 1and commit it ;then I made\n> changes to to yy/folder1/file1 -change 1 and yy/folder1/file 1 -change 2 and\n> commit it ( Folder 1,file 1, change 1 are same in both xx and yy)\n> - Now I want the log of unique commits between both branches ( which will be\n> change 2 commit in yy)\n> \n> How do I get this using GIT? Right now am doing it manually which is very\n> tedious...\n\nBesides adding one repository as remote in other repository, using\n\"git remote add\", you might also use the trick described here:\n\n  https://git.wiki.kernel.org/index.php/GitTips#How_to_compare_two_local_repositories\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}