harmful?
It's a meme, sort of: http://en.wikipedia.org/wiki/Considered_harmful .
Merge Pull Request Considered Harmful
61–70 of 115 posts
Re: Merge Pull Request Considered Harmful
#62I'm not sure how I feel about someone writing something and making me the author. I guess attribution makes sense in the form of paraphrasing. But I tend to think of commits as literal quotations.
Re: Merge Pull Request Considered Harmful
#63Earlier quoted context omitted.
That's cuz Linus Torvalds doesn't have much of a bedside manner. I agree with ya'll on the quality commit message stuff, but that last third was all conjecture from your part, homey.
The last third is based on my extensive opinion having worked on open source software for my entire career, including being the ext4 subsystem maintainer and the e2fsprogs author and maintainer.
Re: Merge Pull Request Considered Harmful
#64Re: Merge Pull Request Considered Harmful
#65Hm... this seems like a very complicated way of saying that github should have a way to merge pull requests into a new branch. ...but it doesn't so you have to: - checkout a local copy - add a remote to the PR - checkout a new branch - merge the PR into your local branch - fix code, merge to master Which is entirely true; it is annoying. The simple solution, though, is to require pull requests to come in a feature br…
The issue described by the author is definitely more of a workflow problem than a technology or service problem.
Re: Merge Pull Request Considered Harmful
#66That's a very strange way to end an article. Could have just stopped before adding that last line.
Re: Merge Pull Request Considered Harmful
#67I used to strictly stay away from the Pull Request button, because it made my history "messy". Now I care less about that and more about the convenience (when it's appropriate).
Re: Merge Pull Request Considered Harmful
#68I really do not see the problem with the rails commit history. Having those merge messages that point back to a pull request leaves lots of documentation about what was done and why it was done. I really do not know why people are so particular about their git log either. It shows an accurate history of the repo, not a revised cleaned up history. However being able to edit pull request before merging was a good thing…
http://www.mail-archive.com/dri-devel@lists.sourceforge.net/...
Turns out Linus also agrees with drunken_thor, that merge messages are useful. Suppose that's why Linus added merges in the first place. ;)
Re: Merge Pull Request Considered Harmful
#69Earlier quoted context omitted.
Yeah, I found the notion of a commit being "history worthy" kind of silly. If that's how it happened, then it's history! It's not a value judgement.
There's an argument that bisect is only useful if every commit is broken. If, as is often the case with my history, most commits don't compile, maybe there's an argument for squashing?
Re: Merge Pull Request Considered Harmful
#70Earlier quoted context omitted.
Yeah, I found the notion of a commit being "history worthy" kind of silly. If that's how it happened, then it's history! It's not a value judgement.
There's an argument that bisect is only useful if every commit is broken. If, as is often the case with my history, most commits don't compile, maybe there's an argument for squashing?
You could also have a little script that does something like:
# Usage gbisect_prs bad good
git bisect start
for commit in "git log --since good --until bad"
if not commit.message.startswith("Merge pull request #"):
git bisect skip commit.hash
Turned into real code, obviously, but it'd tell git to ignore any commit that's not a PR merge.You could also just include this into your bisect script if you're not doing it by hand, return 125 if it's not a commit you want to test.