From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: Git issues with submodules Date: Fri, 22 Nov 2013 10:11:20 -0500 Message-ID: <20131122151120.GA32361@sigill.intra.peff.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Sergey Sharybin , Git List , Jens Lehmann To: Ramkumar Ramachandra X-From: git-owner@vger.kernel.org Fri Nov 22 16:11:30 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VjsOE-0002fp-Gl for gcvg-git-2@plane.gmane.org; Fri, 22 Nov 2013 16:11:26 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755816Ab3KVPLW (ORCPT ); Fri, 22 Nov 2013 10:11:22 -0500 Received: from cloud.peff.net ([50.56.180.127]:43815 "HELO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755647Ab3KVPLW (ORCPT ); Fri, 22 Nov 2013 10:11:22 -0500 Received: (qmail 26441 invoked by uid 102); 22 Nov 2013 15:11:21 -0000 Received: from c-71-63-4-13.hsd1.va.comcast.net (HELO sigill.intra.peff.net) (71.63.4.13) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Fri, 22 Nov 2013 09:11:21 -0600 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 22 Nov 2013 10:11:20 -0500 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, Nov 22, 2013 at 06:38:47PM +0530, Ramkumar Ramachandra wrote: > >> Does Arcanist use `git ls-files -m` to check? > > > > Yes, Arcanist uses `git ls-files -m` to check whether there're local > > modifications. We might also contact phab developers asking to change > > it to `git diff --name-only HEAD --`. Is there a preferable way to > > get list of modified files and are this command intended to output the > > same results? > > I just checked it out: it uses `git ls-files -m` to get the list of > unstaged changes; `git diff --name-only HEAD --` will list staged > changes as well. That diff command compares the working tree and HEAD; if you are trying to match `ls-files -m`, you probably wanted just `git diff --name-only` to compare the working tree and the index. Although in a script you'd probably want to use the plumbing `git diff-files` instead. -Peff