From: Don Zickus <dzickus@redhat.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: using git-blame with patches as input
Date: Tue, 17 Jun 2008 10:17:58 -0400 [thread overview]
Message-ID: <20080617141758.GL16941@redhat.com> (raw)
In-Reply-To: <7vabhl9hap.fsf@gitster.siamese.dyndns.org>
On Mon, Jun 16, 2008 at 02:54:54PM -0700, Junio C Hamano wrote:
> Don Zickus <dzickus@redhat.com> writes:
>
> > For example, if I took the top three commits from HEAD and appended them
> > into one patch file and then ran this tool with the patch as input, I
> > would hope that it gave as output the three original commits.
>
> Unfortunately blame does not work in such an inefficient way. The patch
> text from your second commit (that is, the diff that shows what used to be
> in the first commit and what is in the second commit) may be further
> rewritten in the third commit, so if you start blaming such a text from
> HEAD, the blame stops at the HEAD commit saying "the text you have is even
> newer".
I know, but I am trying to crawl before I run. So I am attacking the
simple cases first to help me understand how the whole git internal
mechanisms work (I am still trying to figure out the correct way to walk
the revision list for a particular file using git-blame as a guide). Once
my code works for the simple cases, then I can attack the more 'normal'
cases like you described above.
Cheers,
Don
prev parent reply other threads:[~2008-06-17 14:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-16 21:35 using git-blame with patches as input Don Zickus
2008-06-16 21:45 ` Junio C Hamano
2008-06-17 14:15 ` Don Zickus
2008-06-16 21:54 ` Junio C Hamano
2008-06-16 22:08 ` Junio C Hamano
2008-06-17 14:17 ` Don Zickus [this message]
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=20080617141758.GL16941@redhat.com \
--to=dzickus@redhat.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).