Introducing split diffs
github.com
github.com
[1] Pull requests are welcome: https://github.com/danielribeiro/github-diff-highlight-exten...
For instance, this is how GitHub renders a commit that adds a wrapper HTML element (and indents all its contents) and changes a class name: http://i.imgur.com/4Lcozgz.png. Not so good. Contrast that with how IDEA renders the same diff: http://i.imgur.com/RGf8psr.png. It makes it obvious where the wrapper tags where added, and which class name changed (which is completely lost within the green glob of the GH diff).
Now, the whitespace-agnostic view on GH (adding ?w=0 to the diff URL) is much better: http://i.imgur.com/AKNn1fW.png. It looks very similar to the IDEA version: http://i.imgur.com/NpDsYBB.png. I wish GH remembered the ?w=0 preference just as it remembers to use the split diff.
Me too! I'm working on that, but it's a bit tough as it changes the order of the lines that are rendered in the browser. Thus, code comments would kind of be borked.
Bottom line, lots to rewrite before we can do just that, but we are 100% aware of it.
I had implemented my own git fetch pr -> emacs ediff -> commints in org file -> add comments to github flow due to how horrible the unified view was for long/large code reviews.
If they can unfuck the "so-and-so has commented on an old commit" thing hiding valuable conversation, we start to get into a real code review tool.
We'll get there ;).
What are you planning to do next ? Can't wait to get there.
Knowing the thorougness of magit, there's probably a way to successfully do this with minimal customization.
[1] http://www.fossil-scm.org/index.html/doc/tip/www/index.wiki
[2] http://www.fossil-scm.org/index.html/info/214b1d0a37487c94d0...
As for which is better... depends. That's why it's good to have both on a toggle like so.
Github's issue management is optimal for small projects. But Bitbucket shines at issue management for large projects: priorities, voting, watching, components, issue workflow.
Bitbucket also has a responsive and fluid design that utilizes screen real-estate better.
All-in-all, I am seriously considering Bitbucket for larger projects.
[1] https://bitbucket.org/site/master/issue/2874/ability-to-sear...
The nice thing is bitbucket has an issue tracker for the site. I am sure Github would have a similar list of pet peeves if it had a way to publicly track feature requests.
# Everything here is terribleAnother diff-related improvement I'd love to see is useful whitespace removal. I know you can do it with a URL flag (`&w=1`), but then you can't make comments, meaning you have to switch back and forth to use it.
The next step will be to have smart split scrolling, so you don't have to leave gaping holes on one side or the other to accommodate additions/removals of large chunks of code (all the not-really-there blank lines can make it harder to grasp the flow).
(And for obj-c developers, it's annoying to see lines begin with `++ (void)...` or similar.)
For people who can see red and green.
Better off using reddish-purple and bluish-green, and also different fonts to indicate changes. That would be a kindness.
The diff convention of marking inserted and deleted lines by + and - provides a "channel" of info showing text comparisons. If the + lines were also blue-green and the - lines also red-violet then there's two channels conveying the same information.
Using colors or not, we'd definitely keep the +/- markers.
The highlighting methods are distinct, but line information is the same. The +/- notation will still be useful on a monochrome monitor or printed page. On a spiffy new 2500x1600 display, I'd personally prefer the color output to quickly find what's changed.
As you note, including the red perception impaired adds ~2% of males. And about 0.5% of females are also color-vision impaired. Overall it is around 9% of the US population.
The prevalence of color-blindness varies by racial/ethnic criteria, and between groups male/female ratio varies quite a bit. Color vision is a very fascinating subject.
https://github.com/andyhmltn/cherry-js/commit/3be55a2d6dab8e...
There is a small issue. When I resize my browser I get an unnecessary horizontal scroll bar. Im in latest stable Chrome on Mac