All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rod Whitby <rod@whitby.id.au>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Git Migration Status
Date: Thu, 31 Jul 2008 00:42:46 +0930	[thread overview]
Message-ID: <489084EE.9070407@whitby.id.au> (raw)
In-Reply-To: <1217428116.5510.26.camel@dax.rpnet.com>

Richard Purdie wrote:
> Git commit IDs are a totally free form fields. There is nothing stopping
> me making commit A as "Richard <rp@localhost>", commit B as "rpurdie
> rurdie@laptop" and then commit C as "Joe <someone@somewhere>". Commit A
> was my desktop, commit B was my laptop, commit C was on some account I
> borrowed.

However, a git commit ID is intended to be a real name and a real email 
address, and the distinction between an author id and a commit id is 
meant to have real meaning (i.e. two different people were involved in 
how this change came into being and how it got accepted into the SCM).

Note that both the author ID and commit ID are meant to be real names 
and real email addresses.  You do want to be able to contact each of 
those two people under different circumstances.

> One problem with git is that its all too easy to screw up setting the
> author/commit IDs. I've done it before, I suspect I will again next time
> I change machine and I'm sure others will too intentionally or
> otherwise.

I agree that this can be a problem.

My proposal is to keep an AUTHORS file at the top level of the OE 
repository, and make git check the commit ID against that file in the 
commit hook.

This would be *much* easier to manage than having to have pseudo email 
address aliases.  It would also mean that anyone with existing commit 
privs could update the AUTHORS file for someone else if that someone 
else needs to change their contact email address for some reason.

> Why does it matter? I'd like to be able to go to the SCM and *know* who
> made a commit (knowing who authored the patch is different). I'd like to
> be able to view all commits for a given "identity".

I'd like to do the same, and I'd like those identifiers to (a) be real 
email addresses and (b) be the same identifiers those people use on 
other git repositories so I can judge the pedigree of the person making 
the commit.

> Also, "the kernel does this, why can't we" is a totally bogus argument:
> 
> 1. If the kernel jumped off a cliff, would you too?

If it involved how to use git, yes.  Otherwise, no.

> 2. The kernel uses a pull model for development and people check IDs for
> some sanity before pulling. With the push model we're going for we don't
> have that luxury.

That is true.  However, you also need to account for a multi-level push 
model, where the second and subsequent levels may not have the same 
restrictions on IDs that you are proposing for the master OE repository. 
  In this case, the author and committer will really be two different 
people, and you want to have real contact email addresses for both.

In summary, I'm dead against identifiers that are not the usual 
identifier that OE contributors use everywhere on the internet.

-- Rod




  reply	other threads:[~2008-07-30 15:16 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29 14:16 Git Migration Status Richard Purdie
2008-07-29 14:54 ` Rolf Leggewie
2008-07-29 15:22   ` Graeme Gregory
2008-07-29 16:40   ` Otavio Salvador
2008-07-29 17:00     ` Tom Rini
2008-07-29 17:21       ` Otavio Salvador
2008-07-29 17:31         ` Tom Rini
2008-07-29 17:11     ` Rich Pixley
2008-07-29 17:55       ` Otavio Salvador
2008-07-29 19:11 ` Thomas Kunze
2008-07-29 19:31   ` Otavio Salvador
2008-07-29 19:52     ` Tom Rini
2008-07-29 23:57 ` Rod Whitby
2008-07-30  7:20   ` Marcin Juszkiewicz
2008-07-30 11:29     ` Cliff Brake
2008-07-30 12:59       ` Otavio Salvador
2008-07-30 13:07         ` Philip Balister
2008-07-30 14:28           ` Richard Purdie
2008-07-30 15:12             ` Rod Whitby [this message]
2008-07-30 16:14               ` Richard Purdie
2008-07-30 17:06                 ` Cliff Brake
2008-07-30 17:26                   ` Cliff Brake
2008-07-31  0:31                     ` Rod Whitby
2008-07-30 17:35                   ` K. Richard Pixley
2008-07-31  2:12                     ` Mike (mwester)
2008-07-31 17:16                       ` K. Richard Pixley
2008-07-31 17:42                         ` Cliff Brake
2008-07-30 17:35                 ` Otavio Salvador
2008-07-30 17:55                   ` Mark Brown
2008-07-31  0:03                 ` Rod Whitby
2008-07-30 16:15             ` Cliff Brake
2008-07-30 17:32             ` Otavio Salvador
2008-07-30 21:35             ` Esben Haabendal
2008-07-30 15:30 ` Rod Whitby

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=489084EE.9070407@whitby.id.au \
    --to=rod@whitby.id.au \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.