macgitver / MacGitverModules

DEPRECATED: Modules for MacGitver
5 stars 1 forks source link

Stage/Index view: Merging of WorkingTree + IndexView into one view #58

Closed antis81 closed 10 years ago

antis81 commented 11 years ago

Here is the new issue open for discussion. We should also use the PR #57 for realization. Currently it is a separate module called "Index" using a separate view.

EDIT: PR changed to #62.

scunz commented 11 years ago

Using #57 for implementation is pretty fine.

The Working-Tree-View currently uses Git::Repository::statusHash (which is based on git_status_foreach_ext) to create a flat list of files in the working directory. Your suggestion for a Index-View was: get a list of files in the index from git_status_foreach_ext and view this in a view. I think that this is a good way to go.

But then we might get a more comfortable user interface, if we:

We should allow the user to add 3 SHA1 columns to the tree: SHA1-Of-HEAD; SHA1-In-Index; SHA1-In-WorkTree

We should setup a table that shows exactly when which state will be shown with what decoration.

[1] After thinking about this, we could also provide a special mode "Conflicts only". But that's a later thing to do...

antis81 commented 10 years ago

Think we can close this one, can we?

scunz commented 10 years ago

Right. This should probably be done totally different with the Mode-Switcher :)