From: Samuel Lucas Vaz de Mello <samuellucas@datacom.ind.br>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Blamming a diff between two commits?
Date: Tue, 17 Feb 2009 11:09:52 -0300 [thread overview]
Message-ID: <499AC530.7000408@datacom.ind.br> (raw)
In-Reply-To: <alpine.DEB.1.00.0902171452060.6185@intel-tinevez-2-302>
Johannes Schindelin wrote:
>
>> Is there any way to git blame (or annotate) a diff between two commits?
>
> If you do not mean the diff, but a commit range:
>
> $ git blame A..B -- file
>
> "Unblameable" lines will be shown with a prefix ^A (not literal, of
> course, but the short commit name of A).
>
This work fine for lines that were added or changed, but not for deleted lines.
If a commit in the range just delete a couple of lines and adds nothing, the whole file is marked as "unblameable" as the deleted lines doesn't exist anymore.
- Samuel
next prev parent reply other threads:[~2009-02-17 14:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-17 13:16 Blamming a diff between two commits? Samuel Lucas Vaz de Mello
2009-02-17 13:53 ` Johannes Schindelin
2009-02-17 14:09 ` Samuel Lucas Vaz de Mello [this message]
2009-02-17 14:27 ` Johannes Schindelin
2009-02-17 14:03 ` Matthieu Moy
2009-02-17 14:09 ` Thomas Rast
2009-02-20 20:04 ` Thomas Rast
2009-02-22 12:32 ` Jan Hudec
2009-02-22 18:49 ` Matthieu Moy
2009-02-22 19:11 ` Jan Hudec
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=499AC530.7000408@datacom.ind.br \
--to=samuellucas@datacom.ind.br \
--cc=Johannes.Schindelin@gmx.de \
--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).