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

git-p4 and keyword substitution

From
MHMichael Horowitz <michael.horowitz@ieee.org>
Date
May 6, 2011, 17:26 UTC
Message-ID
<BANLkTinLW3Ty4n1ODKU-N000q7qQUoSDTQ@mail.gmail.com>
All,
I was wondering if there is a way to deal with this issue...

It seems that git removes the keyword substitutions from Perforce. This is fine, except for the fact that it does not remove them from the p4 client shadow. So, this causes git-p4 submit to fail whenever it either deletes a file with keywords (since the file it is deleting has the keywords and doesn't match) or lines close to the keywords change, such that applying the patch doesn't work.

A Google search turned up a thread from a few years ago where someone submitted a patch to make removing the keyword substitutions optional, but I guess that patch never got accepted, at least not that I can see.

Is there any other way of dealing with this?
Thanks,
Mike
Next: Luke Diamand
Message 1 of 2 in “git-p4 and keyword substitution”
  1. Michael HorowitzMay 6, 2011
  2. Luke DiamandMay 6, 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.