git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: "rocketscienc01100101 ." <rocketscienc01100101@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Bug in git-diff output
Date: Tue, 1 Apr 2014 07:46:22 -0400	[thread overview]
Message-ID: <20140401114621.GB15549@sigill.intra.peff.net> (raw)
In-Reply-To: <CALgQ2n-vPK6_0LnWA_AAD2GLvepjLN4A3UZFCAWzEp9r_=XOVg@mail.gmail.com>

On Tue, Apr 01, 2014 at 12:49:00PM +0200, rocketscienc01100101 . wrote:

> I tried to get a diff between HEAD and the current version of my
> project, so I did "git diff".

That actually diffs between the index and the working tree, but if you
haven't used "git add" to add any changes, the index content is the same
as HEAD.

> It's a web project with a CSS file that contains the following CSS rule:
> 
> a[href^=tel] {
>     color:inherit;
>     text-decoration:none;
> }
> 
> Now, whenever I do "git diff", it will always show the a[href^=tel]
> part and mess up the output, even when I didn't change anything near
> that line. The problem is easily reproducable in a newly created
> repository.

I don't understand what you mean here by "mess up the output". Can you
show us an example (and tell us what you expected to see)?

-Peff

  reply	other threads:[~2014-04-01 11:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01 10:49 Bug in git-diff output rocketscienc01100101 .
2014-04-01 11:46 ` Jeff King [this message]
2014-04-02 10:59 ` rocketscienc01100101 .
2014-04-02 11:05 ` rocketscienc01100101 .
2014-04-02 12:09   ` Matthieu Moy
2014-04-03 18:10     ` Junio C Hamano

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=20140401114621.GB15549@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=rocketscienc01100101@gmail.com \
    /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).