# Strange behavior of git rev-list --first-parent --ancesty-path

1 messages from 2014-09-30 to 2014-09-30. Participants: Василий Макаров.
Thread: https://gitlist.dev/t/37648

## Василий Макаров, 2014-09-30 05:25

Subject: Strange behavior of git rev-list --first-parent --ancesty-path
Message-ID: <CABEtfDGwtMTSP5xxme-p60iU1gMXBwCXA0cGHxLuZS+j-KwhGQ@mail.gmail.com>
URL: https://gitlist.dev/e/CABEtfDGwtMTSP5xxme-p60iU1gMXBwCXA0cGHxLuZS%2Bj-KwhGQ%40mail.gmail.com

```
Hello!

Imagine following tree:
A--B--C
 \      /
  D--E
B is parent #1 of C.

git rev-list --first-parent --ancestry-path D..C returns zero commits.
This is correct, since one cannot find any commits between D and C
traversing tree by first parent.
git rev-list --first-parent --ancestry-path E..C returns SHA of C.
This is strange, because --ancestry-path should restrict output to
commits being both ancestors of C and descendants of E.

Git did not return me any errors or warnings so I'm assuming that
--first-parent and --ancestry-path are OK to be used together.

So, is it a git bug or I'm doing smth wrong?

```
