git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3] git-p4: add option to preserve user names

From
Luke Diamand <luke@diamand.org>
Date
May 8, 2011, 10:58 UTC
Message-ID
<4DC67756.3090002@diamand.org>
In-Reply-To
<7viptmup53.fsf@alter.siamese.dyndns.org>
On 07/05/11 23:22, Junio C Hamano wrote:
Show 8 quoted lines
> Pete Wyckoff<pw@padd.com>  writes:
>
>> luke@diamand.org wrote on Fri, 06 May 2011 06:25 +0100:
>>> On 06/05/11 06:07, Junio C Hamano wrote:
>>>> Luke Diamand<luke@diamand.org>   writes:
>>>>
>>>>> This is version 3 of my patch.
>>>>
<snip>
Show 7 quoted lines
>
> So the only thing lacking at this point is the commit log message?
>
> I am not sure if the "actual user is luke" message you give when (and only
> when) preserveUser is used is a good "reminder".  Isn't it that the user
> needs reminder when the user should have used but forgot to use this
> option, not the other way around like your patch does?

I put that in so that when I'm at the point where I'm about to submit to Perforce I know that git-p4 hasn't forgotten that it's going to patch up the user name, and hasn't got it horribly wrong.

i.e. to reassure me it's not about to mess up Perforce.
Show 5 quoted lines
>
> I suspect that the message would show an unexpected name only when the new
> codepath is buggy or the P4 changes the code is interacting are formatted
> in ways that the new codepath is not expecting (well, they amount to the
> same thing after all, no?),
Exactly.

(The submit template does have a userid field in it, but this is always *your* userid, which I thought might be a bit confusing. Hence the message).

> and having such a message may prevent users
> from submitting the changeset under an incorrect name, but at that point
> what recourse do they have?
Apart from not submitting the changelist, none.
>
> It looks to me that the message is not helping the users, even though it
> may help as a debugging aid for git-p4 developers.
Should I just remove it?

I guess it only adds a small amount of information which could be explained in the instructions.

Regards! Luke

Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “git-p4: add option to preserve user names”
  1. git-p4: add option to preserve user namesLuke Diamand, May 5, 2011
  2. git-p4: add option to preserve user namesLuke Diamand, May 5, 2011
  3. Junio C HamanoMay 6, 2011
  4. Luke DiamandMay 6, 2011
  5. Pete WyckoffMay 6, 2011
  6. Junio C HamanoMay 7, 2011
  7. Luke DiamandMay 8, 2011
  8. Junio C HamanoMay 8, 2011
  9. Luke DiamandMay 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.