Updated Line Based Diffs (markdown)

master
Wilfred Hughes 2021-07-19 00:04:59 +07:00
parent 7a6fde84be
commit ea678bb6d0
1 changed files with 17 additions and 0 deletions

@ -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
```