# How to handle false-positive with git-cherry ?

1 messages from 2015-10-20 to 2015-10-20. Participants: Francis Moreau.
Thread: https://gitlist.dev/t/40597

## Francis Moreau, 2015-10-20 16:25

Subject: How to handle false-positive with git-cherry ?
Message-ID: <CAC9WiBjGVAq-i+-ELG4rH-axU3e0GfMDOBZgZiy9iYU37BQ=cw@mail.gmail.com>
URL: https://gitlist.dev/e/CAC9WiBjGVAq-i%2B-ELG4rH-axU3e0GfMDOBZgZiy9iYU37BQ%3Dcw%40mail.gmail.com

```
Hi,

I have several "maintainance" branches which are based on
different version of my software, which contains only fixes,
imported with 'git cherry-pick'.

I use to comparing stable branches to see if one of them is not
missing a fix for instance. For that purpose I use "git cherry"
of "git log --cherry".

But sometimes git reports me some false-positives because one fix
in a particular branch has been slighlty modified when cherry-picking
it (because the context has slighly changed between 2 versions of
my soft).

Basically I'd like to force git-cherry to assume that the
patch-id of a commit is the same as the one it's been cherry
picked from even if the diff is not exactly the same.

One way to do this would be for    git-cherry to use the string
added by "git-cherry-pick -x":

     (cherry picked from commit xxx)

and to handle the indirection in order to calculate the patch-id.

I couldn't find something equivalent of this with git, but maybe
I've missed an option... could anybody tell me if something
similar already exist ?

Thanks.
-- 
Francis

```
