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

Re: git-p4: Jobs and skipSubmitEdit

From
PWPete Wyckoff <pw@padd.com>
Date
Jul 18, 2012, 01:03 UTC
Message-ID
<20120718010304.GA24602@padd.com>
In-Reply-To
<CAFLRbooDpeE0U+sysa=OZ2a1sPvPo9MYTi4KLRgfJxkxw2HQyw@mail.gmail.com>
mike@horowitz.name wrote on Tue, 17 Jul 2012 04:49 -0400:
Show 15 quoted lines
> I gave the patch a try, and it seems to work great.
> 
> Only problem I realized is that it means that the git commit message
> and the p4 log message end up different, because to p4 the jobs lines
> are special and get stripped out, but in git it just stays part of the
> commit message.  So, when you do a p4 sync/rebase, the commits come
> back without it.  This doesn't make much of difference now, because
> the commit messages come back modified with the p4 path and changelist
> number anyway, but if Luke tries to do that change to store the p4
> path/changelist in notes instead, then we wouldn't want any
> differences in the commit messages, because then the commits hashes
> won't match again.
> 
> Not sure what the best thing to do here is, but I guess it doesn't
> matter until this mythical notes thing happens.
Glad it works.

I didn't think about trying to make the commit messages exact. That isn't required for, e.g. "git cherry", but might be nice just to make git/p4 view of the changes more similar.

Okay if we wait and see how the notes stuff goes, like you suggest. Could be that Jobs ends up in a note too.

Thanks for testing.
		-- Pete
Previous: Michael Horowitz
Message 6 of 6 in “git-p4: Jobs and skipSubmitEdit”
  1. Michael HorowitzJun 22, 2012
  2. Pete WyckoffJun 24, 2012
  3. Michael HorowitzJun 26, 2012
  4. Pete WyckoffJun 26, 2012
  5. Michael HorowitzJul 17, 2012
  6. Pete WyckoffJul 18, 2012

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.