is this a bug of git-diff?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

is this a bug of git-diff?

From: eric liou <hidden>
Date: 2016-06-15 22:57:15

The output of git-diff is different from my expectation.
It may skip some lines of context.
For the case of the diff result attached here, a blank line and a line
with a leading slash is skipped.

Please check out the attached files for details.

Thanks.

Re: is this a bug of git-diff?

From: Antoine Pelisse <hidden>
Date: 2016-06-15 22:57:15

On Wed, May 15, 2013 at 8:23 AM, eric liou [off-list ref] wrote:
The output of git-diff is different from my expectation.
It may skip some lines of context.
git-diff is using a default of 3 lines of context above and below the changes.
In your example, there is only two lines of context below the change,
so only two lines are displayed.
Above the change, three lines are displayed, as expected. That's why
the blank line and leading slash line are not displayed.
You can change the number of context lines by invoking git-diff with -U<n>.

Hope that helps,
Antoine
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help