git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* compare log of two different repos
@ 2011-03-30 19:49 Sri
  2011-03-31  6:05 ` Michael J Gruber
  2011-03-31 19:34 ` Jakub Narebski
  0 siblings, 2 replies; 4+ messages in thread
From: Sri @ 2011-03-30 19:49 UTC (permalink / raw)
  To: git

Hi
This is my scenario:
-  Server has 2 different repos say x & y
- I created a branch out of x ( say xx) and a branch out of y (say yy)
- Now I made changes to xx/folder1/file1- change 1and commit it ;then I made
changes to to yy/folder1/file1 -change 1 and yy/folder1/file 1 -change 2 and
commit it ( Folder 1,file 1, change 1 are same in both xx and yy)
- Now I want the log of unique commits between both branches ( which will be
change 2 commit in yy)

How do I get this using GIT? Right now am doing it manually which is very
tedious...

Thanks
SS

--
View this message in context: http://git.661346.n2.nabble.com/compare-log-of-two-different-repos-tp6224714p6224714.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compare log of two different repos
  2011-03-30 19:49 compare log of two different repos Sri
@ 2011-03-31  6:05 ` Michael J Gruber
       [not found]   ` <AANLkTimKLx--DeWdaunm5cGEax6=xQ8XV_YMOFSPPJ9K@mail.gmail.com>
  2011-03-31 19:34 ` Jakub Narebski
  1 sibling, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2011-03-31  6:05 UTC (permalink / raw)
  To: Sri; +Cc: git

Sri venit, vidit, dixit 30.03.2011 21:49:
> Hi
> This is my scenario:
> -  Server has 2 different repos say x & y
> - I created a branch out of x ( say xx) and a branch out of y (say yy)
> - Now I made changes to xx/folder1/file1- change 1and commit it ;then I made
> changes to to yy/folder1/file1 -change 1 and yy/folder1/file 1 -change 2 and
> commit it ( Folder 1,file 1, change 1 are same in both xx and yy)
> - Now I want the log of unique commits between both branches ( which will be
> change 2 commit in yy)
> 
> How do I get this using GIT? Right now am doing it manually which is very
> tedious...

You could add one as a "remote" to the other, or both as remotes to a
new repo, and then use

git log --cherry-mark xx...yy

or "--cherry-pick" or the "cherry" command.

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compare log of two different repos
       [not found]   ` <AANLkTimKLx--DeWdaunm5cGEax6=xQ8XV_YMOFSPPJ9K@mail.gmail.com>
@ 2011-03-31 16:14     ` Michael J Gruber
  0 siblings, 0 replies; 4+ messages in thread
From: Michael J Gruber @ 2011-03-31 16:14 UTC (permalink / raw)
  To: Sridevi Soundarraju; +Cc: Git Mailing List

Sridevi Soundarraju venit, vidit, dixit 31.03.2011 17:56:
> Hi
> Can you please tell me how to add one as a remote to the other?
> 
> Thanks
> SS

Please see "git help remote" (add), and please don't cull list from cc:,
and please don't top-post. Thanks!

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compare log of two different repos
  2011-03-30 19:49 compare log of two different repos Sri
  2011-03-31  6:05 ` Michael J Gruber
@ 2011-03-31 19:34 ` Jakub Narebski
  1 sibling, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2011-03-31 19:34 UTC (permalink / raw)
  To: Sri; +Cc: git

Sri <nkf364@motorola.com> writes:

> Hi
> This is my scenario:
> - Server has 2 different repos say x & y
> - I created a branch out of x ( say xx) and a branch out of y (say yy)
> - Now I made changes to xx/folder1/file1- change 1and commit it ;then I made
> changes to to yy/folder1/file1 -change 1 and yy/folder1/file 1 -change 2 and
> commit it ( Folder 1,file 1, change 1 are same in both xx and yy)
> - Now I want the log of unique commits between both branches ( which will be
> change 2 commit in yy)
> 
> How do I get this using GIT? Right now am doing it manually which is very
> tedious...

Besides adding one repository as remote in other repository, using
"git remote add", you might also use the trick described here:

  https://git.wiki.kernel.org/index.php/GitTips#How_to_compare_two_local_repositories

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-31 19:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 19:49 compare log of two different repos Sri
2011-03-31  6:05 ` Michael J Gruber
     [not found]   ` <AANLkTimKLx--DeWdaunm5cGEax6=xQ8XV_YMOFSPPJ9K@mail.gmail.com>
2011-03-31 16:14     ` Michael J Gruber
2011-03-31 19:34 ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).