# Directly parse \.git when it's a file instead of using libgit2 \(\#27885\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 055df307571af95bd91968c92a2e7024fcd2e650

Requested commit: 055df307571af95bd91968c92a2e7024fcd2e650

Commit: 055df307571af95bd91968c92a2e7024fcd2e650

Tree: f85a650b79f19c5b4583f8353d38b039be562e50

Author: Cole Miller

Committer: GitHub

## Message

```
Directly parse .git when it's a file instead of using libgit2 (#27885)

Avoids building a whole git2 repository object at the worktree layer
just to watch some additional paths.

- [x] Tidy up names of the various paths
- [x] Tests for worktrees and submodules

Release Notes:

- N/A
```

## Parents

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

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