From: eric liou <accwuya@gmail.com>
To: git@vger.kernel.org
Subject: is this a bug of git-diff?
Date: Wed, 15 May 2013 14:23:07 +0800 [thread overview]
Message-ID: <CABwUO_X8oTzuJh8+v3Oqca2W4ht-cQRNGQ+a1DbEruq5jY+vgA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
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.
[-- Attachment #2: ab.patch --]
[-- Type: application/octet-stream, Size: 110 bytes --]
index 1ef2bf5..ef2206b 100644
--- a/t.c
+++ b/t.c
@@ -4,5 +4,6 @@ int a = 1;
* 1
* 2
* 3
+ * added
*/
[-- Attachment #3: b.c --]
[-- Type: text/x-csrc, Size: 44 bytes --]
int a = 1;
/*
* 1
* 2
* 3
* added
*/
[-- Attachment #4: a.c --]
[-- Type: text/x-csrc, Size: 35 bytes --]
int a = 1;
/*
* 1
* 2
* 3
*/
next reply other threads:[~2013-05-15 6:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 6:23 eric liou [this message]
2013-05-15 6:43 ` is this a bug of git-diff? Antoine Pelisse
[not found] ` <CABwUO_Wyq34S=CwbLeAqmzaFLxORkvGEvrjUzMXjkJdE1jnbhA@mail.gmail.com>
2013-05-15 7:10 ` Antoine Pelisse
2013-05-15 9:34 ` Matthieu Moy
2013-05-15 9:50 ` John Keeping
2013-05-15 10:03 ` Default for color.ui (was Re: is this a bug of git-diff?) Matthieu Moy
2013-05-15 10:37 ` Felipe Contreras
2013-05-15 12:09 ` [PATCH] make color.ui default to 'auto' Matthieu Moy
2013-05-15 12:59 ` Johan Herland
2013-05-15 13:21 ` [PATCH v2] " Matthieu Moy
2013-05-15 16:09 ` Junio C Hamano
2013-05-15 16:52 ` Matthieu Moy
2013-05-15 17:00 ` [PATCH 1/2] config: refactor management of color.ui's default value Matthieu Moy
2013-05-15 17:00 ` [PATCH 2/2 v4] make color.ui default to 'auto' Matthieu Moy
2013-05-15 17:30 ` [PATCH v2] " Junio C Hamano
2013-05-15 13:20 ` [PATCH] " Stefano Lattarini
2013-05-15 14:24 ` [PATCH v3] " Matthieu Moy
2013-05-15 15:42 ` [PATCH] " Junio C Hamano
2013-05-15 16:27 ` Matthieu Moy
2013-05-15 17:34 ` Junio C Hamano
2013-05-15 17:56 ` Matthieu Moy
2013-05-15 18:08 ` Junio C Hamano
2013-05-15 18:21 ` Matthieu Moy
2013-05-15 18:32 ` Junio C Hamano
2013-05-15 19:41 ` Felipe Contreras
2013-05-15 16:43 ` John Keeping
2013-05-15 10:31 ` is this a bug of git-diff? Mike Hommey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABwUO_X8oTzuJh8+v3Oqca2W4ht-cQRNGQ+a1DbEruq5jY+vgA@mail.gmail.com \
--to=accwuya@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).