From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: Sharing a massive distributed merge Date: Thu, 17 Mar 2011 03:30:53 -0400 Message-ID: <20110317073053.GI11931@sigill.intra.peff.net> References: <4D8119BE.2090208@workspacewhiz.com> <20110317063816.GD11931@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Joshua Jensen , "git@vger.kernel.org" To: Jay Soffian X-From: git-owner@vger.kernel.org Thu Mar 17 08:31:04 2011 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 1Q07fk-0007yb-BT for gcvg-git-2@lo.gmane.org; Thu, 17 Mar 2011 08:31:04 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752053Ab1CQHa4 (ORCPT ); Thu, 17 Mar 2011 03:30:56 -0400 Received: from 99-108-226-0.lightspeed.iplsin.sbcglobal.net ([99.108.226.0]:34332 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288Ab1CQHaz (ORCPT ); Thu, 17 Mar 2011 03:30:55 -0400 Received: (qmail 21339 invoked by uid 107); 17 Mar 2011 07:31:29 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Thu, 17 Mar 2011 03:31:29 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 17 Mar 2011 03:30:53 -0400 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 Thu, Mar 17, 2011 at 03:04:14AM -0400, Jay Soffian wrote: > On Thu, Mar 17, 2011 at 2:38 AM, Jeff King wrote: > > [2] It really seems like the right command to get the list of resolved > > files would be "git diff-index" with either a diff-filter, or grepping > > the output of --name-status. But I couldn't convince it to show me > > unmerged files; the unmerged entries always just appeared as > > modifications (actually, deletions in --raw), which made them > > indistinguishable from modified resolutions. > > I use this alias for getting unmerged files: > > $ git help unmerged > `git unmerged' is aliased to `!git ls-files --unmerged | cut -f2 | uniq' Yeah, that would work. Though we really want the list of _resolved_ files. So you'd have to do something like: git ls-files --unmerged | cut -f2 | uniq >unmerged git diff-index HEAD >all comm -23 all unmerged which is why I was hoping to do it with diff-index in the first place. -Peff