# Fix bugs in git implementation \(\#2495\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 35a9b9052806b010945c416f3dc44359296f3833

Requested commit: 35a9b9052806b010945c416f3dc44359296f3833

Commit: 35a9b9052806b010945c416f3dc44359296f3833

Tree: b777d477c81f133a561e5031372fcf1e05307ba4

Author: Mikayla Maki

Committer: GitHub

## Message

```
Fix bugs in git implementation (#2495)

fixes
https://linear.app/zed-industries/issue/Z-1593/clean-up-git-integration

- Fixes calculation of git offsets in the scrollbar:

fixes
https://linear.app/zed-industries/issue/Z-1608/fix-scrollbar-diffs-sliding-out-of-sync-with-gutter-diffs-in

fixes
https://linear.app/zed-industries/issue/Z-1629/project-search-panel-has-git-marks-on-the-scrollbar-misaligned

fixes
https://linear.app/zed-industries/issue/Z-1625/soft-wrap-affects-diff-locations-in-scrollbar

- Improves the performance of scrollbar hunks:

fixes
https://linear.app/zed-industries/issue/Z-1640/double-check-performance-of-scrollbar-hunks

- Fixes a long standing bug with how git gutters interact with soft
wraps:

fixes
https://linear.app/zed-industries/issue/Z-1442/make-hunks-grow-to-the-end-of-softwraps-when-ending-on-a-softwrapped

- Allows work directories to be renamed

fixes
https://linear.app/zed-industries/issue/Z-1577/fix-stale-git-repositories-when-directory-is-renamed

Release Notes:

* Fix the offsets of the git diffs in the scrollbar when there are
folds, wraps, or excerpts (preview only)
* Allow the work directory of a repository to be renamed (preview only)
* Extend git gutter to cover the entirety of a wrapped line
(https://github.com/zed-industries/community/issues/937)
```

## Parents

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

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

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