Re: [PATCHv4] git-p4: add initial support for RCS keywords
- From
- Pete Wyckoff <pw@padd.com>
- Date
- Feb 22, 2012, 12:53 UTC
- Message-ID
- <20120222125327.GA2292@padd.com>
- In-Reply-To
- <1329905741-2092-2-git-send-email-luke@diamand.org>
luke@diamand.org wrote on Wed, 22 Feb 2012 10:15 +0000:
Show 16 quoted lines
> RCS keywords cause problems for git-p4 as perforce always > expands them (if +k is set) and so when applying the patch, > git reports that the files have been modified by both sides, > when in fact they haven't. > > This change means that when git-p4 detects a problem applying > a patch, it will check to see if keyword expansion could be > the culprit. If it is, it strips the keywords in the p4 > repository so that they match what git is expecting. It then > has another go at applying the patch. > > This behaviour is enabled with a new git-p4 configuration > option and is off by default. > > Improved-by: Pete Wyckoff <pw@padd.com> > Signed-off-by: Luke Diamand <luke@diamand.org>
Looks brilliant. Ack. Thanks for suffering through N rounds of review. :)
-- Pete