[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