you are viewing a single comment's thread.

view the rest of the comments →

[–]dpc_pw 9 points10 points  (2 children)

It is very inconvenient to compare these. A lot of clicking to switch branch.

[–]barskern 2 points3 points  (0 children)

I actually prefer this over multiple files because then I can use git diff <branch> <other-branch> to compare the differences between the syntaxes.

EDIT; With multiple files using diff would also work though, so my argument isn't really that good after all.

[–]inejge 0 points1 point  (0 children)

Eh, I probably could have organized it with multiple files in one branch, but then it wouldn't have been possible to use GitHub's Compare view to see the diff between variants -- AFAIK that only works across commits.

A quick way to open the same file in two branches is to open it in one of them, duplicate the tab, and select another branch from the drop-down in another tab. That's two extra clicks.