git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] new tutorial
Date: Sun, 15 Jan 2006 22:57:31 -0500	[thread overview]
Message-ID: <20060116035731.GA14849@fieldses.org> (raw)
In-Reply-To: <7v64olysw2.fsf@assigned-by-dhcp.cox.net>

On Sun, Jan 15, 2006 at 03:26:53PM -0800, Junio C Hamano wrote:
> We may want to mention that the canonical commit log message
> format is a single line "summary phrase", an empty line, and the
> body of the message.

Sounds reasonable.  After the second mention of "commit -a" I've added:

	A note on commit messages: though not required, it's a good idea
	to begin the commit message with a single short (less than 50
	character) line summarizing the change, followed by a blank line
	and then a more thorough description.  Tools that turn commits
	into email, for example, use the first line on the Subject line
	and the rest of the commit in the body.

(Alternatively, if we had more of this sort of thing we could collect
them into a "best practices" document to reference at the end.)

> A bit narrower fill-column settings, please.

Does 70 characters work for you?

And thanks for the rest of the comments; I'll work through them and then
send an update.  (May be a few days.)  I'll assume you want a
replacement unless you tell me you'd prefer an incremental diff.

This caught my eye:

> Empirically the first 7 hexdigits are enough (even 5 for small
> projects such as git itself).  In fact, in the linux-2.6
> repository itself, it appears 5 hexdigits are enough to identify
> all 171902 objects (not just commits) uniquely currently

Five hex digits is only 20 bits, and 171902/2^20 > 1/10, so each
additional object has a better than 1-in-10 chance of colliding with an
existing object.  The chances there hasn't been a collision in the first
5 digits by now must be practically zero.  Maybe you're thinking bytes,
not hex digits?  Unless my math is wrong.

But for these purposes we're just worried about the chance of a
particular string having a collision, which should be more like
(number of objects) / 2^(4*number of digits), so yeah, 16 digits is
overkill, good point.

> BTW, I do not see the CC'ed copy on list archives and am wondering why
> even though I see CC: header in the copy I received...

Maybe the list software didn't like the big patch?

> BTW^2, it might be interesting to do
> 
> 	$ git format-patch -C origin..master
> 
> the next time around.

Oh, I see, it catches the rename then.  Neat.

--b.

  reply	other threads:[~2006-01-16  3:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-11 23:04 merging initial part of a branch? J. Bruce Fields
2006-01-11 23:47 ` Junio C Hamano
2006-01-12  0:15   ` Andreas Ericsson
2006-01-12  0:24     ` Junio C Hamano
2006-01-12  0:59       ` Andreas Ericsson
2006-01-12  1:13         ` J. Bruce Fields
2006-01-12  0:55   ` J. Bruce Fields
2006-01-12  1:47     ` Junio C Hamano
2006-01-13  3:08       ` J. Bruce Fields
2006-01-13  4:00         ` Junio C Hamano
2006-01-13 15:10           ` J. Bruce Fields
2006-01-13 19:50             ` Junio C Hamano
2006-01-13 20:01               ` J. Bruce Fields
     [not found]                 ` <20060115185458.GA3985@fieldses.org>
2006-01-15 23:26                   ` [PATCH] new tutorial Junio C Hamano
2006-01-16  3:57                     ` J. Bruce Fields [this message]
2006-01-16  5:32                       ` Junio C Hamano
2006-01-23  4:57                     ` J. Bruce Fields

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=20060116035731.GA14849@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /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).