|
|
|
|
@ -84,6 +84,23 @@ of the patience algorithm](https://github.com/git/git/commit/85551232b56e763ecfc
|
|
|
|
|
$ git diff --histogram --no-index sample_files/css_before.css sample_files/css_after.css
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Smart Hunk Headers
|
|
|
|
|
|
|
|
|
|
https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
|
|
|
|
|
|
|
|
|
|
```diff
|
|
|
|
|
@@ -24,7 +24,7 @@ class TicketPdf
|
|
|
|
|
ApplicationController.render(
|
|
|
|
|
"tickets/index.html.haml",
|
|
|
|
|
layout: "tickets",
|
|
|
|
|
- assigns: { tickets: tickets }
|
|
|
|
|
+ assigns: { tickets: tickets, event_name: event_name }
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Note how `class TicketPdf` is shown at the beginning.
|
|
|
|
|
|
|
|
|
|
### Side-by-side Diff
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|