Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: Finding a commit

From: Douglas Campos <hidden>
Date: 2016-06-15 22:47:35

On Wed, Oct 21, 2009 at 9:29 AM, Soham Mehta [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help