magit / forge

Work with Git forges from the comfort of Magit
GNU General Public License v3.0
1.31k stars 116 forks source link

Allow browsing the remote from `forge-dispatch` even when repo is not in the database #638

Closed benthamite closed 4 months ago

benthamite commented 8 months ago

This pull request allows the user to browse the remote from the Forge dispatcher even when the repository has not been added to the database. Browsing a remote is a very common operation and it seems like it should be possible to perform it without having to add a repo (or define a custom dispatcher or key binding).

benthamite commented 8 months ago

(Another, perhaps more consistent, approach would be to create a new dispatcher for all the commands currently in forge-dispatch that can be invoked even when the repository is not in the database, and make forge-dispatch trigger this new dispatcher instead of the more limited list that the user is currently presented with.)

tarsius commented 8 months ago

Allow browsing the remote even when repo is not in the database

Well, it's already allowed, the command just isn't bound where you would expect it.

Another, perhaps more consistent, approach would be to [...]

I am currently refining synchronizing the status of topics between Github and Forge. (Which is hard because that part of the API is abysmal.)

After that I'll return my attention to key bindings and related issues. I'll delay thinking about this particular detail, until then.

benthamite commented 8 months ago

Well, it's already allowed, the command just isn't bound where you would expect it.

Slightly edited the title to clarify.

tarsius commented 4 months ago

forge-dispatch now offers some more commands for untracked repositories.