git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: "Jörg Sommer" <joerg@alea.gnuu.de>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH] Pay attention to GIT_DIR when searching the git directory
Date: Mon, 5 May 2008 18:48:31 +0200	[thread overview]
Message-ID: <200805051848.32216.jnareb@gmail.com> (raw)
In-Reply-To: <20080505153029.GA12733@alea.gnuu.de>

On Mon, 5. May 2008, Jörg Sommer wrote:
> Hi Jakub,
> 
> Jakub Narebski schrieb am Mon 05. May, 07:10 (-0700):
>> Jörg Sommer <joerg@alea.gnuu.de> writes:
>>> Johannes Schindelin schrieb am Mon 05. May, 12:36 (+0100):
>> 
>>>> If you do not say _what_ is affected by the change, you only confuse
>>>> the readers.
>>> 
>>> Do you want something like “initialization: Pay attention to GIT_DIR when
>>> searching the git directory”?
>> 
>> I think the idea was to use
>>   "contrib/hooks/setgitperms: Use GIT_DIR if set"
>> or something like that.
> 
> Well, if this is the prefered form, I'll use it. But I don't like it,
> because the affected file is a piece of information that's already in the
> commit object. 

First, it is "subsystem", not the affected file. 'git-svn', 'gitweb',
'bash', 'completion'; in this case perhaps 'contrib/hooks', i.e.
  "contrib/hooks: Use GIT_DIR in setgitperms hook, if set"
or something like that.  IMVHO if a patch affest specific subsystem
only, and not the core part of git, you should always use subsystem
prefix, unless the name of subsystem can be put / is put in the commit
subject (first line of commit message).

Second, commit message should be written in such way that it is easy to
understand what the commit does from the first line (the commit summary),
and easy to understand the whats and whys of change from the full commit
message.  In "git log" output you don't see files affected by a commit.

> And it makes the :/ syntax useless, because in a series of 
> commits all commits start with the same string: the filename.

Commits affecting core don't need to start with a filename, dirname,
or subsystem name.  I gave an example _without_ prefix, didn't I?

[...]
>>> Is there a document with guidelines for commit messages, e.g. write the
>>> first letter upper or lower case?
>> 
>> There are a few unwritten conventions.
> 
> Are there any plans to write them down?

I think it is true for every project that to send good commit you have
to lurk a little, and examine existing commit messages when writting
one.  Linus Torvalds usually writes good commit messages here.

-- 
Jakub Narebski
Poland

      parent reply	other threads:[~2008-05-05 16:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05  0:09 [PATCH] Pay attention to GIT_DIR when searching the git directory Jörg Sommer
2008-05-05 11:36 ` Johannes Schindelin
2008-05-05 12:53   ` Jörg Sommer
2008-05-05 13:39     ` Johannes Schindelin
2008-05-05 14:10     ` Jakub Narebski
2008-05-05 15:30       ` Jörg Sommer
2008-05-05 16:33         ` Johannes Schindelin
2008-05-05 16:48         ` Jakub Narebski [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=200805051848.32216.jnareb@gmail.com \
    --to=jnareb@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=joerg@alea.gnuu.de \
    /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).