-
Notifications
You must be signed in to change notification settings - Fork 94
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
git merge? #245
Comments
It should be! And relatively easy. Could be a good first task for anyone interested in implementing :) A lot of code would be similar to the rebase module I imagine. |
Actually, could I try implementing it myself this weekend? This project is really cool and I want to try contributing to it, and I can learn Rust at the same time :) |
Feel free to give it a go and open a PR/draft. I'd try help out if you get stuck! |
Thanks for the reassurance! I'm trying to workout the file structure so far, but I don't really understand how things are organised. Is there anywhere I can read on this? Or maybe you could help briefly explain the structure? I think I got way too ahead of myself when I decided to take on this challenge, but that's where the learning happens! |
Seems like the bulk of it is in /src/ops! I'll create a merge.rs file there and get to work on it 🖥️ |
That seems about right! You could add a keybind in the default config and see where it breaks from there. |
Current plan:
Should an option to run merge without committing ( EDIT: Was trying out the rebase cmd and it's seems much better to follow for merge too. So I might not do the above, will see |
Sure! I'll try that out. On the topic of tests, may I know what tests are exactly and how they are supposed to be used? I see test folders in diff repos but don't really know how they help in 'testing'. |
I'm a bit busy this weekend but, I'd try sit down and see how Magit behaves, and try replicate as much as it makes sense :) The tests try simulate real usage to try keep bugs away. I can cook some tests for you at the end, don't have to worry about it if you don't want. |
Ah, that explanation about tests makes sense. Don't worry about me, I'll try my best! |
Hey there, been working on and off on this. I realise that I should have asked this earlier, but how am I to test out what I have done so far? Even better if I can do so without overriding the existing gitu version. Will Edit: |
Hey @arcxne. It's a bit hard without more specifics, but I suspect some of the test snapshots may need updating if you add a new entry in the menu. I would copy the existing test, and start from there: https://github.com/altsem/gitu/blob/master/src/tests/rebase.rs |
Hey there, I'm loving gitu so far! Just wanted to ask if
git merge
could be implemented. Maybe keybind 'm' could work?Thanks and best wishes!
The text was updated successfully, but these errors were encountered: