From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754667Ab2L1TuO (ORCPT ); Fri, 28 Dec 2012 14:50:14 -0500 Received: from out01.mta.xmission.com ([166.70.13.231]:53176 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754576Ab2L1TuI (ORCPT ); Fri, 28 Dec 2012 14:50:08 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Al Viro Cc: anish singh , amit mehta , Henrique Rodrigues , kishore kumar , Jonathan Neusch??fer , linux-kernel@vger.kernel.org, Kernelnewbies@kernelnewbies.org References: <20121227184034.GA2982@debian.debian> <87a9syhbma.fsf@xmission.com> <20121228160927.GY4939@ZenIV.linux.org.uk> Date: Fri, 28 Dec 2012 11:49:53 -0800 In-Reply-To: <20121228160927.GY4939@ZenIV.linux.org.uk> (Al Viro's message of "Fri, 28 Dec 2012 16:09:27 +0000") Message-ID: <87d2xuez32.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-AID: U2FsdGVkX1/QuYSy1QvVUJ9bbN81+52HXZCvP9F9K2I= X-SA-Exim-Connect-IP: 98.207.153.68 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 T_TM2_M_HEADER_IN_MSG BODY: T_TM2_M_HEADER_IN_MSG * -3.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Al Viro X-Spam-Relay-Country: Subject: Re: how to look for source code in kernel X-SA-Exim-Version: 4.2.1 (built Sun, 08 Jan 2012 03:05:19 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Al Viro writes: > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: >> But then I am probably peculiar keeping an index of the source code in >> my head. When I need to look for something and I don't know where to >> find it I do. >> >> git-ls-files | xargs fgrep 'struct f2fs_inode' > > What's wrong with git grep? I haven't learned it yet. git-ls-files is a lot better than find speed wise so is very much worth doing. I haven't a clue if there is an advantage to git-grep, over just knowing find, xargs, and grep. Eric