# git_graph: Keep shared parents on the leftmost incoming lane \(\#55818\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2d5c4cede1c20fbe209d414ce52aa34da7bb8013)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2d5c4cede1c20fbe209d414ce52aa34da7bb8013

Requested commit: 2d5c4cede1c20fbe209d414ce52aa34da7bb8013

Commit: 2d5c4cede1c20fbe209d414ce52aa34da7bb8013

Tree: d8f7a22f3b6e70b6e90264c32925a79d6ff7a1b5

Author: Anthony Eid

Committer: GitHub

## Message

```
git_graph: Keep shared parents on the leftmost incoming lane (#55818)

Fixes git graph lane selection when multiple active lanes point to the
same parent commit, matching Git’s `--graph` behavior by keeping the
commit on the leftmost incoming lane instead of the first discovered
lane.

This should make it much easier to track long lived branches 

### Before
<img width="318" height="611" alt="image"
src="https://github.com/user-attachments/assets/b6799992-1a96-4c35-ad38-dd0c7d2ae0e6"
/>

### After
<img width="180" height="596" alt="Screenshot 2026-05-05 at 4 07 28 PM"
src="https://github.com/user-attachments/assets/a8727d59-c423-49c3-aad2-0097f23d9251"
/>



 
Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A

---------

Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

- [c60c0d5f496cb8106afdcc7eff52679328a73b8e](https://git.cafe/gitcafe/zed/commit/c60c0d5f496cb8106afdcc7eff52679328a73b8e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2d5c4cede1c20fbe209d414ce52aa34da7bb8013?format=markdown)
