From: Antoine Pelisse Date: Wed, 15 May 2013 06:43:40 GMT Subject: Re: is this a bug of git-diff? Message-ID: In-Reply-To: On Wed, May 15, 2013 at 8:23 AM, eric liou 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. Hope that helps, Antoine