From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: [PATCH 2/2] branch --merged/--not-merged: allow specifying arbitrary commit Date: Tue, 08 Jul 2008 18:22:10 -0700 Message-ID: <7vmykronr1.fsf_-_@gitster.siamese.dyndns.org> References: <7v8wwcx446.fsf@gitster.siamese.dyndns.org> <20080708101452.GB19202@artemis.madism.org> <20080708103408.GC19202@artemis.madism.org> <7vvdzfoo1s.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org, Lars Hjemli To: Pierre Habouzit X-From: git-owner@vger.kernel.org Wed Jul 09 03:24:05 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 1KGOPd-0002jl-FM for gcvg-git-2@gmane.org; Wed, 09 Jul 2008 03:24:05 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752102AbYGIBWZ (ORCPT ); Tue, 8 Jul 2008 21:22:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751550AbYGIBWY (ORCPT ); Tue, 8 Jul 2008 21:22:24 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:49146 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbYGIBWY (ORCPT ); Tue, 8 Jul 2008 21:22:24 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id F3F8C16E29; Tue, 8 Jul 2008 21:22:22 -0400 (EDT) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 9866A16E26; Tue, 8 Jul 2008 21:22:18 -0400 (EDT) In-Reply-To: <7vvdzfoo1s.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Tue, 08 Jul 2008 18:15:43 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: 7B75FDF8-4D55-11DD-B2A5-CE28B26B55AE-77302942!a-sasl-fastnet.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "git-branch --merged" is a handy way to list all the branches that have already been merged to the current branch, but it did not allow checking against anything but the current branch. Having to check out only for that purpose made the command practically useless. This updates the option parser so that "git branch --merged next" is accepted when you are on 'master' branch. Signed-off-by: Junio C Hamano --- * This does have an issue. --no-