docs: Add Git page (#14582)

This PR adds a basic Git page to the docs so that we have somewhere to
link to from the Git upsell within Zed.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-16 12:47:18 -04:00 committed by GitHub
parent 09c497f744
commit 0556eddc21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 1 deletions

View File

@ -940,7 +940,10 @@ impl ExtensionsPage {
v_flex().children(self.upsells.iter().enumerate().map(|(ix, feature)| {
let upsell = match feature {
Feature::Git => FeatureUpsell::new("Zed comes with basic Git support for diffs and branches. More Git features are coming in the future."),
Feature::Git => FeatureUpsell::new(
"Zed comes with basic Git support. More Git features are coming in the future.",
)
.docs_url("https://zed.dev/docs/git"),
Feature::Vim => FeatureUpsell::new("Vim support is built-in to Zed!")
.docs_url("https://zed.dev/docs/vim")
.child(CheckboxWithLabel::new(

View File

@ -20,6 +20,7 @@
- [Assistant Panel](./assistant-panel.md)
- [Channels](./channels.md)
- [Collaboration](./collaboration.md)
- [Git](./git.md)
- [Tasks](./tasks.md)
- [Remote Development](./remote-development.md)
- [REPL](./repl.md)

10
docs/src/git.md Normal file
View File

@ -0,0 +1,10 @@
# Git
Zed currently supports the following Git features:
- Diff indicators in buffers and editor scrollbars
- Git status in the project panel
- Branch creating and switching
- Git blame viewing
More advanced Git features—like staging and committing changes or viewing history within Zed—will be coming in the future.