Skip to contentSkip to conversation

idea: light-weight pull requests

DISCUSSION Paul Wise 3 participants 5 messages Feb 7, 2017

lore
Share & tools
lore

Paul Wise

author
#0 lore raw

Hi all,

I had an idea that might be interesting to git folks:

light-weight pull requests:

Anonymous and ssh/http-identified users should be able to push just using git, within the refs/pull/ namespace, to any non-existent branch name or to a branch they created when previously identified, without forking off a new repository.

Advantages:

Removes the need to look up who to send the pull request notification to since configuring that is up to the project itself.

Removes the annoying scenario of having lots of remotes that have been removed after the corresponding pull request was closed.

Moves popular git hosting services from primarily a model of forests of forks to one of contributions to well maintained ongoing projects.

Allows users to use their preferred git clients to issue pull requests instead of using web interfaces of popular git hosting services.

Creates a new standard for contributing to repositories on all git repository hosting services.

Contributions from people without an account on those services are possible.

Contributions from people without any git repository hosting of their own are possible.

Contributions from people who don't use or dislike MUAs are possible.

Disadvantages:

Pull request spam, could be mitigated with configuration options.

Extra configuration and complexity on the server side. This is once only and means less complexity on the pull requester side.

Will not work with typical setups where the git/http/ssh user does not have write access to the repositories. A workaround could be some sort of hybrid-repository setup with the new refs and objects in a second repository which would be shared by all pull requesters.

Signature · 4 lines
bye,
pabs

http://bonedaddy.net/pabs3/
#1 lore raw

Hello, pabs.

IMHO, the notion of a PR/MR is more specific to Git repository management tools (e.g., GitHub, GitLab). They all have specific concepts/ways to manage the way how their hosted repositories behave --- and I believe this flexibility is one of the beauties in Git . I could see how this could be implemented by tools like this rather easily (e.g., using symlinks + inotify or something less hacky).

I'm wondering if standardizing this would be more interesting to those communities?

I would like to see what becomes of this.

Cheers!
-Santiago.

Quoted 53 lines · Paul Wise

Hi all,

I had an idea that might be interesting to git folks:

light-weight pull requests:

Anonymous and ssh/http-identified users should be able to push just using git, within the refs/pull/ namespace, to any non-existent branch name or to a branch they created when previously identified, without forking off a new repository.

Advantages:

Removes the need to look up who to send the pull request notification to since configuring that is up to the project itself.

Removes the annoying scenario of having lots of remotes that have been removed after the corresponding pull request was closed.

Moves popular git hosting services from primarily a model of forests of forks to one of contributions to well maintained ongoing projects.

Allows users to use their preferred git clients to issue pull requests instead of using web interfaces of popular git hosting services.

Creates a new standard for contributing to repositories on all git repository hosting services.

Contributions from people without an account on those services are possible.

Contributions from people without any git repository hosting of their own are possible.

Contributions from people who don't use or dislike MUAs are possible.

Disadvantages:

Pull request spam, could be mitigated with configuration options.

Extra configuration and complexity on the server side. This is once only and means less complexity on the pull requester side.

Will not work with typical setups where the git/http/ssh user does not have write access to the repositories. A workaround could be some sort of hybrid-repository setup with the new refs and objects in a second repository which would be shared by all pull requesters.

Signature · 4 lines
bye,
pabs

http://bonedaddy.net/pabs3/
author
#2 lore raw
Quoted 6 lines · Santiago Torres

IMHO, the notion of a PR/MR is more specific to Git repository management tools (e.g., GitHub, GitLab). They all have specific concepts/ways to manage the way how their hosted repositories behave --- and I believe this flexibility is one of the beauties in Git . I could see how this could be implemented by tools like this rather easily (e.g., using symlinks + inotify or something less hacky).

Right, but I would like to see this everywhere (including kernel.org), so support in git-daemon and the http/ssh equivalents is needed too. git already has support for anonymous push but this idea is more complex.

Quoted 2 lines

I'm wondering if standardizing this would be more interesting to those communities?

I've pitched this to github.com/contact but couldn't find any feature request address for GitLab.

Quoted 1 line

I would like to see what becomes of this.

Likewise :)

Signature · 4 lines
bye,
pabs

http://bonedaddy.net/pabs3/
#3 lore raw
In reply to Paul Wise
Quoted 10 lines · Paul Wise

Hi all,

I had an idea that might be interesting to git folks:

light-weight pull requests:

Anonymous and ssh/http-identified users should be able to push just using git, within the refs/pull/ namespace, to any non-existent branch name or to a branch they created when previously identified, without forking off a new repository.

I considered something similar to this a few years ago, but decided it wasn't worth the effort (see below).

Quoted 14 lines

Advantages:

Removes the need to look up who to send the pull request notification to since configuring that is up to the project itself.

Removes the annoying scenario of having lots of remotes that have been removed after the corresponding pull request was closed.

Moves popular git hosting services from primarily a model of forests of forks to one of contributions to well maintained ongoing projects.

Allows users to use their preferred git clients to issue pull requests instead of using web interfaces of popular git hosting services.

Quoted 8 lines

Creates a new standard for contributing to repositories on all git repository hosting services.

Contributions from people without an account on those services are possible.

Contributions from people without any git repository hosting of their own are possible.

All of these are great goals which I'd love to see realized, but...

Quoted 1 line

Contributions from people who don't use or dislike MUAs are possible.

How would discussion and review happen? People seem to use either mail, or centralized messaging (and the latter often involves non-Free systems like GitHub or Slack).

Quoted 3 lines

Disadvantages:

Pull request spam, could be mitigated with configuration options.

This is a big one. Maybe CRM114 or another generic/trainable option can be made usable; but I think there'll always be cases where hardcoded rules need to be written (for SpamAssassin, at least) and real-time blacklists need to be checked.

At some point, you might end up having to recreate everything we have in place to combat email spam. Or, use blockchain or something similarly expensive for reputation, which isn't good for poor folks with slow computers.

Anyways, I ultimately decided it would be better to continue supporting and improving email (which is at least entrenched in a few communities, like this one), rather than trying to get people to adopt something new.

author
#4 lore raw
Quoted 3 lines · Eric Wong

How would discussion and review happen?  People seem to use either mail, or centralized messaging (and the latter often involves non-Free systems like GitHub or Slack).

It would depend on the setup for the particular repo. Information about where that happens could be part of the output of the git push.

Quoted 4 lines

This is a big one.  Maybe CRM114 or another generic/trainable option can be made usable; but I think there'll always be cases where hardcoded rules need to be written (for SpamAssassin, at least) and real-time blacklists need to be checked.

TBH, I doubt spam would become a problem at all.

Quoted 4 lines

Anyways, I ultimately decided it would be better to continue supporting and improving email (which is at least entrenched in a few communities, like this one), rather than trying to get people to adopt something new.

Email is great for people used to the old ways but it is gradually being replaced by APIs and web interfaces :(

Signature · 4 lines
bye,
pabs

http://bonedaddy.net/pabs3/