From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 2/2] push: Add '--current', which pushes only the current branch Date: Mon, 19 Nov 2007 00:35:52 -0800 Message-ID: <7vk5oeocnr.fsf@gitster.siamese.dyndns.org> References: <11954023881802-git-send-email-prohaska@zib.de> <119540238994-git-send-email-prohaska@zib.de> <7vwssfqb0w.fsf@gitster.siamese.dyndns.org> <7vejempudf.fsf@gitster.siamese.dyndns.org> <53F12F4D-73C5-446E-9A97-9D2D4CA9DF9F@zib.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org, Johannes Schindelin To: Steffen Prohaska X-From: git-owner@vger.kernel.org Mon Nov 19 09:36:17 2007 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 1Iu276-0006x1-Js for gcvg-git-2@gmane.org; Mon, 19 Nov 2007 09:36:17 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbXKSIgA (ORCPT ); Mon, 19 Nov 2007 03:36:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752180AbXKSIf7 (ORCPT ); Mon, 19 Nov 2007 03:35:59 -0500 Received: from sceptre.pobox.com ([207.106.133.20]:37959 "EHLO sceptre.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155AbXKSIf7 (ORCPT ); Mon, 19 Nov 2007 03:35:59 -0500 Received: from sceptre (localhost.localdomain [127.0.0.1]) by sceptre.pobox.com (Postfix) with ESMTP id E1C7B2EF; Mon, 19 Nov 2007 03:36:19 -0500 (EST) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by sceptre.sasl.smtp.pobox.com (Postfix) with ESMTP id 6E9499656A; Mon, 19 Nov 2007 03:36:16 -0500 (EST) In-Reply-To: <53F12F4D-73C5-446E-9A97-9D2D4CA9DF9F@zib.de> (Steffen Prohaska's message of "Mon, 19 Nov 2007 09:17:06 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Steffen Prohaska writes: > What's left is a new switch "--current". Less code, easy > to explain. But won't that force the "current" people always type that from the command line, as your previous point was that your earlier patch to say "remote.$there.push = HEAD" does not work that way? If that configuration works as expected, then I'd 100% agree that we would not need push.defaultRefs. Either you do not have "push" at all if your preference is --matching, or you do have "push = HEAD" if your preference is --current. But if it doesn't (which was what I gathered from your earlier response), having a configuration would help them, wouldn't it? Changing the default, if it will ever happen, is _NOT_ to help people who are already using git and want "current" NOW. The current users cannot be helped _unless_ we switch overnight, but that is not an option as it introduces a regression to people's established workflow. Changing the default is to help new users who will come in the future, if majority of the existing users find --current easier to explain to new people _they_ need to train.