Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2023 13:03:40 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Ed Maste <emaste@freebsd.org>
Cc:        "Bjoern A. Zeeb" <bz@freebsd.org>, src-committers <src-committers@freebsd.org>,  "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>, dev-commits-src-main@freebsd.org
Subject:   Re: git: 247e03ed8b83 - main - Add git-blame ignore file
Message-ID:  <CANCZdfpq73F_TYYk6QWAh=kHFv0kXL_N08Ngj0uMV0HBOk5fhg@mail.gmail.com>
In-Reply-To: <CAPyFy2Dt%2Bw5nwyeGvkgqc7xi3SONiyetbe6f4-RCiJ61rsX=9A@mail.gmail.com>
References:  <202301232027.30NKRckV060051@gitrepo.freebsd.org> <1o40rq5-n1pr-ss27-q14-qo845q26398@mnoonqbm.arg> <CAPyFy2Dt%2Bw5nwyeGvkgqc7xi3SONiyetbe6f4-RCiJ61rsX=9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000048a3e805f3445d5e
Content-Type: text/plain; charset="UTF-8"

On Fri, Jan 27, 2023, 12:59 PM Ed Maste <emaste@freebsd.org> wrote:

> On Fri, 27 Jan 2023 at 10:24, Bjoern A. Zeeb <bz@freebsd.org> wrote:
> >
> > On Mon, 23 Jan 2023, Ed Maste wrote:
> >
> > > The branch main has been updated by emaste:
> > >
> > > URL:
> https://cgit.FreeBSD.org/src/commit/?id=247e03ed8b8341cf25dc3d9ecb846612d984f424
> > >
> > > commit 247e03ed8b8341cf25dc3d9ecb846612d984f424
> > > Author:     Ed Maste <emaste@FreeBSD.org>
> > > AuthorDate: 2023-01-23 20:27:25 +0000
> > > Commit:     Ed Maste <emaste@FreeBSD.org>
> > > CommitDate: 2023-01-23 20:27:25 +0000
> > >
> > >    Add git-blame ignore file
> > >
> > >    .git-blame-ignore-revs lists commit hashes that should be skipped by
> > >    `git blame` e.g. non-functional whitespace or style cleanup.
> > >
> > >    The file is populated with a few sample entries.
> >
> > How is this file to be used?
> >
> > 1. Do a non-functional commit?
> > 2. And then do another commit to add the hash?
>
> Yes, although there's no need to list every non-functional change
> here. It's useful mainly for changes that would otherwise obscure the
> history/blame - for example, re-indenting libexec/rtld-elf/rtld.c to
> use standard indentation would be a good use.
>
> We could omit the comments, but I don't think it's worth the effort to
> try to automate this.
>

Yea, we need a hash to put in the file which suggests that at most we could
do automatically is add a new commit at the end of the push... and that's
going to cause extra friction if we do it too much. And if we do it rarely,
there's little benefit to automation. And reformatting is very rare....

Warner

>

--00000000000048a3e805f3445d5e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Fri, Jan 27, 2023, 12:59 PM Ed Maste &lt;<a href=3D=
"mailto:emaste@freebsd.org">emaste@freebsd.org</a>&gt; wrote:<br></div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex">On Fri, 27 Jan 2023 at 10:24, Bjoern A. Zeeb &lt=
;<a href=3D"mailto:bz@freebsd.org" target=3D"_blank" rel=3D"noreferrer">bz@=
freebsd.org</a>&gt; wrote:<br>
&gt;<br>
&gt; On Mon, 23 Jan 2023, Ed Maste wrote:<br>
&gt;<br>
&gt; &gt; The branch main has been updated by emaste:<br>
&gt; &gt;<br>
&gt; &gt; URL: <a href=3D"https://cgit.FreeBSD.org/src/commit/?id=3D247e03e=
d8b8341cf25dc3d9ecb846612d984f424" rel=3D"noreferrer noreferrer" target=3D"=
_blank">https://cgit.FreeBSD.org/src/commit/?id=3D247e03ed8b8341cf25dc3d9ec=
b846612d984f424</a><br>
&gt; &gt;<br>
&gt; &gt; commit 247e03ed8b8341cf25dc3d9ecb846612d984f424<br>
&gt; &gt; Author:=C2=A0 =C2=A0 =C2=A0Ed Maste &lt;emaste@FreeBSD.org&gt;<br=
>
&gt; &gt; AuthorDate: 2023-01-23 20:27:25 +0000<br>
&gt; &gt; Commit:=C2=A0 =C2=A0 =C2=A0Ed Maste &lt;emaste@FreeBSD.org&gt;<br=
>
&gt; &gt; CommitDate: 2023-01-23 20:27:25 +0000<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 =C2=A0 Add git-blame ignore file<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 =C2=A0 .git-blame-ignore-revs lists commit hashes that shou=
ld be skipped by<br>
&gt; &gt;=C2=A0 =C2=A0 `git blame` e.g. non-functional whitespace or style =
cleanup.<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 =C2=A0 The file is populated with a few sample entries.<br>
&gt;<br>
&gt; How is this file to be used?<br>
&gt;<br>
&gt; 1. Do a non-functional commit?<br>
&gt; 2. And then do another commit to add the hash?<br>
<br>
Yes, although there&#39;s no need to list every non-functional change<br>
here. It&#39;s useful mainly for changes that would otherwise obscure the<b=
r>
history/blame - for example, re-indenting libexec/rtld-elf/rtld.c to<br>
use standard indentation would be a good use.<br>
<br>
We could omit the comments, but I don&#39;t think it&#39;s worth the effort=
 to<br>
try to automate this.<br></blockquote></div></div><div dir=3D"auto"><br></d=
iv><div dir=3D"auto">Yea, we need a hash to put in the file which suggests =
that at most we could do automatically is add a new commit at the end of th=
e push... and that&#39;s going to cause extra friction if we do it too much=
. And if we do it rarely, there&#39;s little benefit to automation. And ref=
ormatting is very rare....</div><div dir=3D"auto"><br></div><div dir=3D"aut=
o">Warner</div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
</blockquote></div></div></div>

--00000000000048a3e805f3445d5e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpq73F_TYYk6QWAh=kHFv0kXL_N08Ngj0uMV0HBOk5fhg>