macgitver / MacGitverModules

DEPRECATED: Modules for MacGitver
5 stars 1 forks source link

Commit Workingtree #31

Closed scunz closed 9 years ago

antis81 commented 11 years ago

Do you mean the stage/index here? In my oppinion this is one of the main features blocking us from getting the Genesis version ready.

scunz commented 11 years ago

Hmm, thinking shortly about this: From a functional point of view, i agree that this would be what's mostly keeping a 0.1 release in the shaddows...

However, if we allow to commit the index then we should really ask ourselves first: how should the user be able to add something to the index? Or in longer words: Yes, I think that we need to be able make a new commit out of the index. But we first need to implement adding files (or even hunks) to the index.

So, in a first roundtrip, I'd suggest the following:

I've been distracted quite a bit (again) recently. I'm not sure as to when I will actually be working on mgv again...

antis81 commented 11 years ago

Not a problem. I send a PR (well, maybe next week or so :smile:) and we discuss it when it is available.

scunz commented 11 years ago

Would be cool.

antis81 commented 11 years ago

Hi. Thaught the time is right to do it :smile:. So I set up another branch topic/IndexView and added a simple stupid dialog there. Found it to be simpler to start off this way, than a PR. Could you review please? It is not much - basically the UI right now. I just like to know, if the QListView for the "Diff" is going in the right direction.

scunz commented 11 years ago

Yeah, I think this is going in the right direction. I've thought several times about creating a view to the index, but always dismissed it.

Just two nitpicks:

antis81 commented 11 years ago

Ya got me, I copied the module as a template. Thanks for the hint :+1: - I will fix that. Btw.: The commit dialog UI is made similar to the GitX one (see https://github.com/rowanj/gitx).

antis81 commented 11 years ago

Got a quick preview implementation of the ´diffIndexToWorkingTree` thingy. Far from really usable, but shows it generally works! Well, kind of :smile:

antis81 commented 9 years ago

Closing this one as we have implemented it, addressed in Redmine. The basic commit mechanism with staging/unstaging files and creation a commit with message. There's no linewise staging yet, but we really need to cleanly bring that one into our Roadmap in the project system.