From: Douglas Campos <douglas@theros.info>
To: Soham Mehta <soham@box.net>
Cc: git@vger.kernel.org
Subject: Re: Finding a commit
Date: Wed, 21 Oct 2009 11:26:36 -0200 [thread overview]
Message-ID: <ed88cb980910210626t750b4cc2r91d1dc22df14eb8b@mail.gmail.com> (raw)
In-Reply-To: <4ADEF095.3020406@box.net>
On Wed, Oct 21, 2009 at 9:29 AM, Soham Mehta <soham@box.net> wrote:
> Given a SHA1 of a commit from one repository (say x), wondering what is a
> proper way to find out if that commit (change) also exists in a different
> repository (say y).
>
> Because SHA1 can change if a commit is cherry-picked around, I cannot just
> grep for that SHA1 from git-rev-list or git-log on 'y'. I need a way to know
> if a commit with identical changes (as in 'x') is also present in 'y'.
>
> I realize that Author and Timestamp do not change when the commit is moved
> (fetched, pushed, pulled, rebased, cherry-picked etc). So my current
> solution relies on grepping for the pair of Author-Timestamp from git-log on
> 'y'.
>
Have you tried git cherry?
--
Douglas Campos (qmx)
+55 11 7626 5959
next prev parent reply other threads:[~2009-10-21 13:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-21 11:29 Finding a commit Soham Mehta
2009-10-21 12:30 ` Daniele Segato
2009-10-21 12:37 ` Thomas Rast
2009-10-21 13:55 ` Daniele Segato
2009-10-21 13:26 ` Douglas Campos [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-22 8:32 Soham Mehta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ed88cb980910210626t750b4cc2r91d1dc22df14eb8b@mail.gmail.com \
--to=douglas@theros.info \
--cc=git@vger.kernel.org \
--cc=soham@box.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).