Received: from eggs.gnu.org ([208.118.235.92]:50942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkZqO-0004E2-5w for qemu-devel@nongnu.org; Mon, 17 Dec 2012 07:30:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkZqM-0003EV-WE for qemu-devel@nongnu.org; Mon, 17 Dec 2012 07:30:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkZqM-0003ER-Mh for qemu-devel@nongnu.org; Mon, 17 Dec 2012 07:30:50 -0500 From: Markus Armbruster References: <20121213072606.GA833@redhat.com> <20121216144639.GB9993@redhat.com> <87k3shueog.fsf@blackfin.pond.sub.org> <20121217111901.GA19609@redhat.com> Date: Mon, 17 Dec 2012 13:30:40 +0100 In-Reply-To: <20121217111901.GA19609@redhat.com> (Michael S. Tsirkin's message of "Mon, 17 Dec 2012 13:19:01 +0200") Message-ID: <87ip80uahb.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PULL] pci,net,misc infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Blue Swirl , yamahata@valinux.co.jp, jbaron@redhat.com, qemu-devel@nongnu.org, Anthony Liguori "Michael S. Tsirkin" writes: > On Mon, Dec 17, 2012 at 11:59:59AM +0100, Markus Armbruster wrote: >> "Michael S. Tsirkin" writes: >> >> > On Fri, Dec 14, 2012 at 09:37:17PM +0000, Blue Swirl wrote: >> >> Perhaps the use of '-' vs. '_' in file names could be unified while >> >> renaming. I think most new files use dash. >> >> Yes, please! >> >> > I can do this in a follow up patch but first let's put this rule in >> > coding style file. As it is more files use _ than -. >> > And I'm not sure what's the point of using dash, as opposed >> > to underscore: underscore seems more consistent. >> >> Actually, '-' is more common: >> >> $ git-ls-files | wc -l >> 2839 >> $ git-ls-files | grep [-_] | wc -l >> 2150 >> $ git-ls-files | grep _ | wc -l >> 1124 >> $ git-ls-files | grep -- - | wc -l >> 1567 > > I think you counted target-XXX linux-user etc multiple times. If you want just basenames, no directories: $ git-ls-files | sed 's#.*/##g' | grep [-_] | wc -l 1698 $ git-ls-files | sed 's#.*/##g' | grep _ | wc -l 1121 $ git-ls-files | sed 's#.*/##g' | grep -- - | wc -l 588 If we exclude tests/, which has tons of '_', we get: $ git-ls-files | grep -v ^tests/ | sed 's#.*/##g' | grep _ | wc -l 486 $ git-ls-files | grep -v ^tests/ | sed 's#.*/##g' | grep -- - | wc -l 546 Either way, precedence isn't really conclusive. It's a matter of taste anyway. I happen to prefer '-'.