From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: [PATCH] git-diff: Add --staged as a synonym for --cached. Date: Wed, 12 Nov 2008 06:06:29 -0500 Message-ID: <20081112110629.GA20473@coredump.intra.peff.net> References: <20081029164253.GA3172@sigill.intra.peff.net> <20081029171122.GA12167@sigill.intra.peff.net> <20081102123519.GA21251@atjola.homenet> <7vljw2yo93.fsf@gitster.siamese.dyndns.org> <20081103071420.GD10772@coredump.intra.peff.net> <32541b130811102004n54a47331v48ba8d299039897f@mail.gmail.com> <20081112083353.GB3817@coredump.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Avery Pennarun , Junio C Hamano , =?utf-8?B?QmrDtnJu?= Steinbrink , David Symonds , git@vger.kernel.org, Stephan Beyer To: Johannes Schindelin X-From: git-owner@vger.kernel.org Wed Nov 12 12:08:07 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1L0DZa-0001uM-JX for gcvg-git-2@gmane.org; Wed, 12 Nov 2008 12:07:47 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751542AbYKLLGc (ORCPT ); Wed, 12 Nov 2008 06:06:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751472AbYKLLGc (ORCPT ); Wed, 12 Nov 2008 06:06:32 -0500 Received: from peff.net ([208.65.91.99]:3894 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbYKLLGb (ORCPT ); Wed, 12 Nov 2008 06:06:31 -0500 Received: (qmail 18567 invoked by uid 111); 12 Nov 2008 11:06:30 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.32) with SMTP; Wed, 12 Nov 2008 06:06:30 -0500 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Wed, 12 Nov 2008 06:06:29 -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 Wed, Nov 12, 2008 at 12:10:57PM +0100, Johannes Schindelin wrote: > Just in case anybody thought about creating tree objects on the fly and > use their SHA-1s: that won't fly, as you can have unmerged entries in the > index. So STAGED.. is a _fundamentally_ different thing from HEAD^.. I thought about that at first, too, but the working tree is even more painful. You would have to hash every changed file on the filesystem to create the tree object. -Peff