FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.45k stars 640 forks source link

Navigating the directory tree #342

Open triblondon opened 10 years ago

triblondon commented 10 years ago

screen shot 2014-03-16 at 11 37 50

When not in a repo, ungit could show a list of the directories under the CWD , and for those that are git repos, indicate the checked out branch and how far ahead/behind it is. Even maybe the diff stats for the uncommitted changes. This would make it much faster to navigate to a repo, and to manage lots of repos from within the same ungit window.

I've also suggested some copy changes, because my particular use case for ungit is inexperienced users (it's a design team) who have never used any kind of version control before, and while I have found ungit to be almost the perfect "starter" git client, it could do with tuning slightly to help the uninitiated as much as possible:

The screenshot above is mocked up in the browser using devtools.

FredrikNoren commented 10 years ago

Thanks for the copy suggestions, I think they all make sense so just pushed a patch to update them!

Re the dir view: yup something like that would definitively make sense, I've been considering something like that or perhaps a tree sidebar for a while but haven't had time to try it out. (There's a plugin system if anyone wants to give this a go without altering ungit proper)

dpwhittaker commented 6 years ago

image

I've got a working prototype on my fork at https://github.com/dpwhittaker/ungit . I tried to go the plugin route but there were a few pieces of information I couldn't find in the existing git-api, namely ahead and behind, so I went with a fork instead.

It may not quite be ready for a pull request:

1) It is not as nice looking as it could be. 2) It currently only supports the origin remote. 3) It fetches every time it refreshes the view (which seems to be every time I move my mouse). 4) All requests are serialized, no parallelization. 5) It could be more responsive on small screens.

Given these caveats, if you still want me to send a pull request, let me know.