From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Likhodedov Subject: Re: git ls-files handles paths differently in Windows and Mac (probably Linux) Date: Tue, 12 Oct 2010 16:59:12 +0400 Message-ID: References: <3C33A244-2449-4A3C-A8B5-2060CE61EE04@jetbrains.com> Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Cc: git@vger.kernel.org To: Alex Riesen X-From: git-owner@vger.kernel.org Tue Oct 12 14:59:31 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P5eRw-0000M3-VD for gcvg-git-2@lo.gmane.org; Tue, 12 Oct 2010 14:59:25 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932423Ab0JLM7P (ORCPT ); Tue, 12 Oct 2010 08:59:15 -0400 Received: from mail.intellij.net ([213.182.181.98]:59349 "EHLO mail.intellij.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932282Ab0JLM7P convert rfc822-to-8bit (ORCPT ); Tue, 12 Oct 2010 08:59:15 -0400 Received: (qmail 16059 invoked by uid 89); 12 Oct 2010 12:59:13 -0000 Received: by simscan 1.1.0 ppid: 16015, pid: 16050, t: 0.0140s scanners: regex: 1.1.0 clamav: 0.96 /m: 52 Received: from unknown (HELO loki-mac-pro.labs.intellij.net) (Kirill.Likhodedov@jetbrains.com@172.26.240.110) by mail.intellij.net with ESMTPA; 12 Oct 2010 12:59:13 -0000 In-Reply-To: X-Mailer: Apple Mail (2.1081) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: >> The behavior of ls-files is inconsistent in Windows and Mac. >> >> I want to see which files were changed in the specific directory of my working tree, so I call ls-files: >>> git ls-files -douvm --exclude-standard -- MYDIR >> > > Well, it is an... unconventional way to do that. May I suggest you consider > using "git diff --name-status" or just "git status" next time? My tests show that "git ls-files -douvm" is faster than "git diff --name-status". "git status" doesn't fit, because it's porcelain (btw, git diff is also porcelain) and its output may change in time; "git status --porcelain" appeared only in 1.7.0, so I can't use it to work with older Git. ---------------------------------- Kirill Likhodedov JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"