Update merging style in CONTRIBUTING.md (#21467)

This commit is contained in:
Lazula 2023-03-12 12:40:28 -05:00 committed by GitHub
parent 86b5d8e4ab
commit b9356ead0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,14 +87,13 @@ git remote add radareorg git@github.com:radareorg/radare2.git
git remote add radareorg https://github.com/radareorg/radare2
```
radare2 uses a `fast-forward` merging style. This means that instead of taking
the new commits you make and adding them to `master` in a single "merge
commit", the commits are directly copied and applied to `master`, "replaying"
them to bring `master` up to date with your branch.
radare2 uses the `squash` merging style to summarize changes. When your changes
are merged, the merging collaborator can customize the commit message that will
be used in `master`. Typically, the pull request title is used as the commit
message. Specific or smaller changes may be included in the body.
Default settings may create these "merge commits", which are undesirable and
make the commit history harder to read and interpret. You can set `merge` and
`pull` to fast-forward only to avoid this.
Default settings may create "merge commits" when pulling from upstream, which
can cause issues. Set `merge` and `pull` to fast-forward only to avoid this.
```sh
git config merge.ff only