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

Re: Suggestion: add option in git-p4 to preserve user in Git repository

From
ODOlivier Delalleau <shish@keba.be>
Date
Jan 12, 2013, 19:44 UTC
Message-ID
<CAFXk4bpM8X3k=iwRjM9kvm4XbZyKS+hTCiVbHOjH3jK6MkkBSg@mail.gmail.com>
In-Reply-To
<20130112163838.GA28722@padd.com>
2013/1/12 Pete Wyckoff <pw@padd.com>:
Show 18 quoted lines
> shish@keba.be wrote on Thu, 10 Jan 2013 22:38 -0500:
>> I'm in a situation where I don't have P4 admin rights to use the
>> --preserve-user option of git-p4. However, I would like to keep user
>> information in the associated Git branch.
>>
>> Would it be possible to add an option for this?
>
> The --preserve-user option is used to submit somebody else's work
> from git to p4.  It does "p4 change -f" to edit the author of the
> change after it has been submitted to p4.  P4 requires admin
> privileges to do that.
>
> Changes that are imported _from_ p4 to git do have the correct
> author information.
>
> Can you explain a bit more what you're looking for?
>
>                 -- Pete
Hi,

Sorry I wasn't clear enough. When "git p4 submit" submits changes from Git to P4, it also edits the Git history and replaces the Git commits' authors by the information from the Perforce account submitting the changes. The advantage is that both the P4 and Git repositories share the same author information, but in my case I would like to keep in the Git repository the original authors (because the P4 account I'm using to submit to P4 is shared by all Git users).

Hope it makes more sense now :)
-=- Olivier
Previous: Pete WyckoffNext: Pete Wyckoff
Message 3 of 6 in “Suggestion: add option in git-p4 to preserve user in Git repository”
  1. Olivier DelalleauJan 11, 2013
  2. Pete WyckoffJan 12, 2013
  3. Olivier DelalleauJan 12, 2013
  4. Pete WyckoffJan 12, 2013
  5. Olivier DelalleauJan 13, 2013
  6. Deirdre ConnollyJun 17, 2013

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.