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

[PATCHv4] git-p4: RCS keyword handling

From
Luke Diamand <luke@diamand.org>
Date
Feb 22, 2012, 10:15 UTC
Message-ID
<1329905741-2092-1-git-send-email-luke@diamand.org>

Updated patch incorporating comments from Pete and Junio to handle RCS keyword expansion in git-p4.

Note: The current patch fails to to handle the case where a user
adds an expanded RCS keyword in *git* (e.g. via cut-n-paste).
I'll try to address that separately. There's a failing test case
for this.
This version:
 - uses "p4 fstat" to get the filetype
 - uses Junio's suggested regexp to match $Keyword:$
 - uses the sets of added/deleted files rather than parsing diff output
 - various other small fixes spotted by Pete
 - adds additional test cases
Luke Diamand (1):
  git-p4: add initial support for RCS keywords
 Documentation/git-p4.txt   |    5 +
 contrib/fast-import/git-p4 |  118 ++++++++++++--
 t/t9810-git-p4-rcs.sh      |  388 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 501 insertions(+), 10 deletions(-)
 create mode 100755 t/t9810-git-p4-rcs.sh
-- 
1.7.9.259.ga92e
Next: Luke Diamand
Message 1 of 5 in “[PATCHv4] git-p4: RCS keyword handling”
  1. Luke DiamandFeb 22, 2012
  2. [PATCHv4] git-p4: add initial support for RCS keywordsLuke Diamand, Feb 22, 2012
  3. Pete WyckoffFeb 22, 2012
  4. Junio C HamanoFeb 22, 2012
  5. Luke DiamandFeb 22, 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.