git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Barret Rhoden <brho@google.com>
To: "Christian González" <christian.gonzalez@nerdocs.at>,
	"Thomas Gummerer" <t.gummerer@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: feature request: .blameignore
Date: Tue, 16 Apr 2019 10:52:15 -0400	[thread overview]
Message-ID: <7cb3e28d-2f4a-9fa8-d3c5-3b9184e53149@google.com> (raw)
In-Reply-To: <5df051ce-007c-cc12-6f02-345b33480c0a@nerdocs.at>

Hi -

On 4/15/19 5:56 PM, Christian González wrote:
> Am 15.04.19 um 23:15 schrieb Thomas Gummerer:
>> This sounds roughly like what Barret Rhoden (added to Cc) has been
>> working on.  I haven't followed that patch series in detail, but you
>> can have a look at it atthe latest iteration at
>> https://public-inbox.org/git/20190410162409.117264-1-brho@google.com/.
> 
> As far as I can see this is an "automagic" way of creating those "blame
> skips" - which can be easier in some way, but until it works "perfect"
> It is prone to produce problems IMHO.
> 
> The git history is a "document" that _has_ not to be changed by design.
> So if this "heuristic" produces a wrong result, it's kind of
> unpredictable what was wrong.
> 
> I think it would be MUCH easier to mark chunks or whole commits as  "not
> important" explicitly - by using a file.

I think there's a slight misunderstanding.  In the patchset that Michael 
and I are working on, the user specifies whole commits explicitly.  This 
is usually done with a file, but can also be done from the command line 
for "one-off" ignored commits.  That sounds like what you want.

The heuristics come in when we try to pass blame for specific *lines* 
that an ignored commit touched.  We pass the blame to the parent commit, 
but we also want to match the lines to a specific line in the parent 
commit.  That way we can find the 'right' ancestor commmit.  We're not 
able to always identify the 'right' commit, hence the heuristics.

Barret


  reply	other threads:[~2019-04-16 14:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-15 20:55 feature request: .blameignore Christian González
2019-04-15 21:15 ` Thomas Gummerer
2019-04-15 21:56   ` Christian González
2019-04-16 14:52     ` Barret Rhoden [this message]
2019-04-16 16:33       ` Christian González

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7cb3e28d-2f4a-9fa8-d3c5-3b9184e53149@google.com \
    --to=brho@google.com \
    --cc=christian.gonzalez@nerdocs.at \
    --cc=git@vger.kernel.org \
    --cc=t.gummerer@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).