Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try and be smart about what line the diff starts on #131

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

scottchiefbaker
Copy link
Contributor

I've been testing this for a couple of days now and I'm pretty confident it's accurate. This should fix #120.

Change on line # gives this output
1: @@ -1,4 +1,4 @@
2: @@ -1,5 +1,5 @@
3: @@ -1,6 +1,6 @@
4: @@ -1,7 +1,7 @@
5: @@ -2,6 +2,7 @@
6: @@ -3,7 +3,7 @@

Starting from the end (last line (10), second to last line (9))...
-1: @@ -7,4 +7,4 @@
-2: @@ -6,5 +6,5 @@
-3: @@ -5,6 +5,6 @@
-4: @@ -4,7 +4,7 @@

1: @@ -1,4 +1,4 @@
2: @@ -1,5 +1,5 @@
3: @@ -1,6 +1,6 @@
4: @@ -1,7 +1,7 @@
5: @@ -2,6 +2,7 @@
6: @@ -3,7 +3,7 @@

Starting from the end (last line (10), second to last line (9))...
-1: @@ -7,4 +7,4 @@
-2: @@ -6,5 +6,5 @@
-3: @@ -5,6 +5,6 @@
-4: @@ -4,7 +4,7 @@
@paulirish
Copy link
Member

ah interesting that none of our tests hit this.

@stevemao when you get a second, maybe you could toss one in, so we keep things consistent?

paulirish added a commit that referenced this pull request Mar 17, 2016
Try and be smart about what line the diff starts on
@paulirish paulirish merged commit 6054b77 into so-fancy:master Mar 17, 2016
stevemao added a commit that referenced this pull request Mar 21, 2016
When diff starts in the first three lines

Closes #120
scottchiefbaker added a commit that referenced this pull request Mar 22, 2016
@scottchiefbaker scottchiefbaker deleted the start_line branch December 28, 2017 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

line number of diff is incorrect.
2 participants