Open triblondon opened 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)
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.
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:
<dirname>
is not a repository' (adding dir name helps contextualise the error and lead user to solution)<dirname>
a repository' ('initialise' is unnecessarily technical, and it's also otherwise ambiguous as to whether you're creating a repo as a subdirectory of the cwd or whether you're making the cwd a repo)<dirname>
' (make it clear that the repo will be a subdirectory, and add context)The screenshot above is mocked up in the browser using devtools.