-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suggest how to fix whitespace issues in a commit
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
206f252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inspired by #9098 (comment)
@timholy @jakebolewski Is this OK?
206f252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could make it
git rebase --whitespace=fix origin/master
. That way, if folks happen to working on their local master branch (naughty, naughty), it will still work. You might also want to explain that1
is for a single commit.206f252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also would be nice to have a readme section on github/git with tips like this and guidelines for PRs like "no merge commits please, and if you have some in your PR find out how to fix them here [1] and here [2]"
[1] http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
[2] http://git-scm.com/book/en/v2/Git-Branching-Rebasing
206f252
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vchuravy We have CONTRIBUTING.md, and github suggests that you read it when opening an issue or a PR.
It can definitely be extended with some policy about keeping pull requests rebased and up to date with master, and that we prefer contributors to amend corrections and squash commits unless multiple commits provide a nice separation of independent changes.