Bug 560137 - Always select a Git repostory in the Git staging view if only one is available
Summary: Always select a Git repostory in the Git staging view if only one is available
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
: 579995 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-02-14 03:50 EST by Lars Vogel CLA
Modified: 2022-06-14 08:28 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2020-02-14 03:50:26 EST
The current workflow which requires a select before being able to work with the Git repository is IMHO not ideal. 

I suggest to select the first Git repository of the available Git repositories in the Git staging view instead of saying "No repository selected".

This will hugely improve the not so rare use case is that customers only have one Git repository. But also for multiple repos it is better to have one repo selected instead of none.
Comment 1 Andrey Loskutov CLA 2020-02-14 05:13:48 EST
I would vote against, except we change the request to "Always select a Git repository in the Git staging view if ONLY one is available".

I don't wont any random selection of ~N repositories to be done automatically by the tool. However, if only one repo is known by egit, this would be OK.
Comment 2 Lars Vogel CLA 2020-02-14 05:22:16 EST
(In reply to Andrey Loskutov from comment #1)
> I would vote against, except we change the request to "Always select a Git
> repository in the Git staging view if ONLY one is available".
> 
> I don't wont any random selection of ~N repositories to be done
> automatically by the tool. However, if only one repo is known by egit, this
> would be OK.

Better than current situation, so fine by me.
Comment 3 Matthias Sohn CLA 2020-02-14 05:23:31 EST
I second Andrey's opinion.

Maybe we could stick to the repository which was selected last if the current selection doesn't refer to a repository.
Comment 4 Michael Keppler CLA 2020-04-18 11:16:18 EDT
We had some of this discussion also in bug 539799. The most accepted alternative there seemed to be "remember on shutdown, use that as initial selection on view recreation".

I would still favor that very much, since it brings the workbench closer to a persistent state even after restart (and I silenty dream of the package explorer and repo view expanding their nodes after start exactly as before shutdown...)
Comment 5 Thomas Wolf CLA 2022-05-24 05:39:47 EDT
*** Bug 579995 has been marked as a duplicate of this bug. ***
Comment 6 Jörg Kubitz CLA 2022-06-14 08:06:11 EDT
Please at least "if there is a single repo preselect it". For us that is the common situation and can't harm anybody.