git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-cherry doesn't detect a "copied" commit

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Oct 23, 2015, 06:47 UTC
Message-ID
<CAC9WiBgkv+nu1YX+zaxigG9FWppDJ19f7d2gm_7H9wosHSV_Yw@mail.gmail.com>
In-Reply-To
<CAC9WiBhM4edBFCYx35xZJB79AZWo49mkO-Pxnb1q4aLDmBufWQ@mail.gmail.com>
Hi,
On Tue, Oct 20, 2015 at 6:32 PM, Francis Moreau <francis.moro@gmail.com> wrote:
Show 24 quoted lines
> Hi,
>
> I'm seeing something odd with git-cherry: it doesn't seem to detect
> that a commit has been cherry-picked from master branch.
>
> This happens with the systemd git repository (from github) so it
> should be fairly simple to reproduce.
>
> What I did:
>
> $ git --version
> git version 2.6.0
> $ git checkout -b foo v210
> $ git cherry-pick -x 9ea28c55a2488e6cd4a44ac5786f12b71ad5bc9f
> $ git branch --contains 9ea28c55a2488e6cd4a44ac5786f12b71ad5bc9f
> master
> $ git cherry master HEAD
> + fef60bf34d1b372bea1db2515a8d936386dfc523
>
> so git-cherry tells me that the cherry-picked commit has not
> equivalent in master, which is no the case.
>
> What am I missing ?
>

Could anybody give me a hint even if I'm blind and not seeing my stupid mistake ?

Thanks
-- 
Francis
Previous: Francis MoreauNext: Kevin Daudt
Message 2 of 6 in “git-cherry doesn't detect a "copied" commit”
  1. Francis MoreauOct 20, 2015
  2. Francis MoreauOct 23, 2015
  3. Kevin DaudtOct 23, 2015
  4. Francis MoreauOct 23, 2015
  5. Junio C HamanoOct 23, 2015
  6. Francis MoreauOct 29, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.