Giter Club home page Giter Club logo

Comments (5)

wking avatar wking commented on August 30, 2024 2

Defaulting to explicit merges gives contributors space to build a change out of several small pivots, and explain each pivot in a distinct commit message. That's likely easier to review, both when the pull is in-flight and post-merge if later developers are looking at git blame ... and trying to figure out what the original developer was thinking.

Building a series of fixups while a pull request is in-flight might make multiple rounds of review easier for a single reviewer who comes back to the same pull for each round of review, and that's great if the contributor and reviewer want to work like that. But the contributor can squash their commits themselves, once the reviewer is happy, into a series of semantic commits or a single commit or whatever they think makes the story most clearly to the hypothetical future developers.

For contributors who are not comfortable doing their own rebase (e.g. a lack of familiarity or access to command-line Git), I think squash-merges make sense. But those can be one-off actions by maintainers reviewing those pulls. It seems unlikely that this style of contribution is frequent enough for it to need to be the default.

from dev-docs.

russellb avatar russellb commented on August 30, 2024

Maybe a new doc docs/common-github-repo-settings.md where we can add notes on things we think should be common across all (or most) repos.

from dev-docs.

nathan-weinberg avatar nathan-weinberg commented on August 30, 2024

@russellb I will work on creating something like this week!

from dev-docs.

russellb avatar russellb commented on August 30, 2024

It seems unlikely that this style of contribution is frequent enough for it to need to be the default.

Anywhere this is a regular thing just means we need some more senior folks to provide some assistance and coaching on how to do all the things you described: crafting a patch series, the use of git rebase for squashing, ...

from dev-docs.

nathan-weinberg avatar nathan-weinberg commented on August 30, 2024

@wking @russellb I've opened a Pull Request for this issue, let's continue the discussion there: #10

from dev-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.