-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POC: Add a Git Panel #19877
POC: Add a Git Panel #19877
Conversation
We require contributors to sign our Contributor License Agreement, and we don't have @Spoutnik97 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
Should start to fix #4367 |
@Spoutnik97 : Seems like a good place to start, I would remove it for now, you can already see the branch name above. let header = if let Some(git_status) = &self.git_status {
v_flex()
.gap_2()
.p_2()
.child(h_flex().gap_1().child(Label::new(format!(
"Branch: {}",
git_status.branch.current_branch
))))
.child(horizontal_separator(cx)) I would do this if it works like this, only print if no repository found. let header = if self.git_status.is_none() {
v_flex()
.gap_2()
.p_2()
.child(Label::new("No Git repository found"))
.child(horizontal_separator(cx))
} If so I would bring up something like this that would allow you to initialize a repository. Something like this would be nice: |
Thanks for the PR, @Spoutnik97! Just a heads-up that we already have existing designs for the Git experience in Zed, so it's not likely that we'll merge this implementation. |
@maxdeviant : Where can I see them? Since I don't see any pr at the moment from any At the moment we are stuck at Milestone1 from what I read and there is no trace of the current Milestone process, on which issues are to be addressed and which are not. |
Regarding git's interface design, I've seen it in the zed community on discord, but it doesn't exist anymore, zed is becoming less transparent now, and it's not clear what the team is doing, the only way to find out is the rp merge.
From what I can tell, there was just simply a lack of time, the direction and design was already in place in the team, but there was no public disclosure of the appropriate information or a way for the community to contribute, so it led to git stagnation |
@0x2CA : I agree with you. Then regarding git, at least there was only one contributor (Zed staff) who took care of starting the work, at the moment everything is suspended there are thousands of users who request these features. |
In general zed wants to grasp the core by itself, and wants the community to contribute edge features or extensions, but nothing is ready, and last time there was a live discussion about the interface extension feasibility. It's too slow, and based on the community contributions I've seen merged, it's usually some logic feature, or bug fix or some optimization. There is no interface redesign, new system interface Without a solid underlying design, subsequent feature development could be disastrous, one can understand the zed team's concern about accepting community contributions, but it's really too bad that no information is made public and everything stops, forgive me for complaining |
@0x2CA : I agree with what you say, so I would say it would be fair to open a discussion about the following concerns, I think you know the zed environment better than me, how about opening one: and talk about it there, so we can hear everyone's opinion. I was able to find only this after much research: |
I understand that it is not needed I spend more time on this PR if it won't be merged. Just for personal use while the Zed team has not prioritized the feature |
@Spoutnik97 : it's a real shame, but it won't be the last pr that is not true accepted there have been many others. Anyway if you want to learn to use rust, I would advise you to continue developing this feature for personal use, if you want. |
Where can one find the design details @maxdeviant ? |
Thinking of this and given that we have the wordy discussion open, let's close this. |
This is a POC to add a git panel to see all git changes. It is highly plebiscite by the community. I think it could be a good starting point to have a better git panel with stash / commit / etc... git commands
It is my first Rust code, and my first gpui usage, so be kind, and help to understand how it works please 🙂 Claude and Zed helped me a lot to write this (unmergeable) code
I will be very interested in understanding how to finish this work, but I need some help to learn.
Enregistrement.de.l.ecran.2024-10-29.a.08.59.39.mov
Release Notes: