Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2017 13:28:19 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        rgrimes@freebsd.org
Cc:        Benjamin Kaduk <bjkfbsd@gmail.com>, Gleb Smirnoff <glebius@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r317409 - head/contrib/tcpdump
Message-ID:  <9709200.gDHZIeQ1vL@ralph.baldwin.cx>
In-Reply-To: <201704252010.v3PKA0ba063109@pdx.rh.CN85.dnsmgr.net>
References:  <201704252010.v3PKA0ba063109@pdx.rh.CN85.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, April 25, 2017 01:10:00 PM Rodney W. Grimes wrote:
> > full
> > (github or otherwise) URL including the commit hash to just a bare commit
> > hash,
> > but find either acceptable and adequate for the purpose.  (FWIW, the
> > correct commit
> > was the top google hit for me.)
> > 
> > I hope we are in agreement that commit messages ought to still include some
> > description of what change is being brought in, in addition to the
> > hash/link, though.
> 
> Commit messages should stand complete and alone, without need to refernce
> outside material to understand what was changed and why it was changed.
> Again, at best Obtained From:  should of been a usable url.

I think this is perhaps the point of contention, and I think while the
sentiment is correct, I would not apply it to this commit.  The commit
message should indeed describe what is going on, but having a citation inline
vs in the footnotes isn't invalid in and of itself.  (FWIW, Obtained From
generally references another project rather than a single commit, so
'Obtained From: FooBSD', or 'Obtained from: tcpdump')

We also make several references to other source code revisions in outside
repositories in commits.  Just look at commits to makefs that refer to CVS
revisions when merging changes from NetBSD, or any of the changes to ZFS that
always reference the revision identifier from illumos.

I do think that when referring to a Git hash the citation should also include
something to identify which repository it came from.  It doesn't have to be a
URL per se (we just use 'NetBSD' for makefs, not a full URL to NetBSD's
cvsweb), but it should be clear enough that one can find the corresponding
repository.  Probably that information belongs in 'Obtained From'.

-- 
John Baldwin



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