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