Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93313 invoked from network); 28 Mar 2012 00:54:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Mar 2012 00:54:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:42016] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/72-13163-B21627F4 for ; Tue, 27 Mar 2012 19:54:03 -0500 Received: by wibhr14 with SMTP id hr14so411935wib.11 for ; Tue, 27 Mar 2012 17:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sfvb4U0hldlBvyc5Kj1sdDs/jDclyVt8QcnnaaVGacs=; b=r5B156S/qJovYT+jaZba5MYjUJ2xDZ15zisVlxsEKEy3bEsMCxJlzqwSPpHcFE+fKR lXyF3awqS+DAdWojqAXyIvti2Glci8OQ0NKHkmWMN/7mHAvyzwl3qkDpMbWD6TyUUAtX QDOXzXeYN5itN4P/+1ACrJqbIe7Ul35/ifcvAIGh7Czt23QuN/+o/8kW+z7umzWr/q5I SYH4TvHKFgCjhnjlhZAulrdgTL+13dkpN/e5XEyHZ8vOswIdORgEd6XNWFXG7d1qV/EM UAc2mHzQtFbSog2Glg5x7b4x83f9F6SZ0ZSUS6d4LBDpigwi28HFNvmcEfgKmfPkv9o8 0L2A== MIME-Version: 1.0 Received: by 10.216.133.96 with SMTP id p74mr16038191wei.30.1332896040394; Tue, 27 Mar 2012 17:54:00 -0700 (PDT) Received: by 10.223.111.130 with HTTP; Tue, 27 Mar 2012 17:54:00 -0700 (PDT) In-Reply-To: <4F725ECF.7060702@sugarcrm.com> References: <4F725C51.1020207@sugarcrm.com> <4F725ECF.7060702@sugarcrm.com> Date: Tue, 27 Mar 2012 17:54:00 -0700 Message-ID: To: Stas Malyshev Cc: Pierre Joye , PHP internals Content-Type: multipart/alternative; boundary=0016e6dd898d029e6a04bc430b7f Subject: Re: [PHP-DEV] git merge and generated files? From: kris.craig@gmail.com (Kris Craig) --0016e6dd898d029e6a04bc430b7f Content-Type: text/plain; charset=ISO-8859-1 Pierre, On Tue, Mar 27, 2012 at 5:43 PM, Stas Malyshev wrote: > Hi! > > >> Why would these change every 2nd commit? These only should change when > >> you change the scanner, which happens very rarely. > > > > It depends what you do, but still annoying when it happens. > > > > But that does not answer the question... > > Looking at the patch, it looks like yours and git's line endings did not > match, which may have caused the conflict. Stas is right. Looks like the Windows CR line endings are causing it to puke on ya. I'm assuming you're working in Windows, right? What Git client are you using? If you're using Msysgit, it automatically converts these line endings for you specifically to avoid this problem, but you have to select that option during the installation process when it prompts you. I don't know if the setting can be changed after install; my guess would be it can, but I have no idea how. The easiest thing to do would be to just re-run the Msysgit installer (if that's what you're using) and when prompted select the option to auto-convert line endings (i.e. I think the option is something along the lines of "Use Unix-Style line endings"). --Kris > I think it'd be also the best > to resolve such conflicts by leaving the files as-is, maybe just by > using git reset or using git mergetool and choosing the "old" variant. > Depending on the system mergetool would use different tools so I'm not > sure which one would be best on yours. I usually just use mergetool, > mark every change to resolve to "old" variant and that cleans up the > commit. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0016e6dd898d029e6a04bc430b7f--