threads / bug / 47896

Bug: git log: boundary commits do not respect order (e.g. date-order, topo-order)

Subject: Bug: git log: boundary commits do not respect order (e.g. date-order, topo-order)

## tl;dr

2 messages between Feb 21, 2018 and Feb 21, 2018.

replies: 1people: 1as markdown or json

Josh Tepper· Feb 21, 2018, 23:28 UTC · lore

When using git log, boundary commits (ie, those commits added by specifying --boundary) do not respect the order (e.g., --date-order, --topo-order). Consider the following commit history, where number indicates the order of the commit timestamps:

<view with a fixed with font! 3's ancestor is 1, 6's ancestors are 4,5>
0----1----2----5  <--A
       \         \
         3----4----6  <--B
Executing the following command:
$ git log --boundary --date-order ^A B

Should produce the following order (boundary commits shown with dashes): 6 -5 4 3 -1

However, it in fact produces: 6 4 3 -7 -1

Please advise.

Best, ~Josh

Josh Tepper· Feb 21, 2018, 23:56 UTC · re: Josh Tepper · lore

Re: Bug: git log: boundary commits do not respect order (e.g. date-order, topo-order)

TYPO IN EXPECTED OUTPUT.

To avoid inevitable confusion, creating new thread "Bug: git log: boundary commits do not respect order (e.g. date-order, topo-order) 2".

DON'T REPLY TO THIS MESSAGE.  Instead reply to the new message
On Wed, Feb 21, 2018 at 6:28 PM, Josh Tepper <josh@clarifai.com> wrote:
Show 25 quoted lines
> When using git log, boundary commits (ie, those commits added by
> specifying --boundary) do not respect the order (e.g., --date-order,
> --topo-order).  Consider the following commit history, where number
> indicates the order of the commit timestamps:
>
> <view with a fixed with font! 3's ancestor is 1, 6's ancestors are 4,5>
> 0----1----2----5  <--A
>        \         \
>          3----4----6  <--B
>
>
> Executing the following command:
>
> $ git log --boundary --date-order ^A B
>
> Should produce the following order (boundary commits shown with dashes):
> 6 -5 4 3 -1
>
> However, it in fact produces:
> 6 4 3 -7 -1
>
> Please advise.
>
> Best,
> ~Josh

← back to recent threads