From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: Fwd: ephemeral-branches instead of detached-head? Date: Tue, 13 Aug 2013 09:58:57 -0700 Message-ID: <7vbo51y1bi.fsf@alter.siamese.dyndns.org> References: <7veh9z1gym.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Git Mailing List , Duy Nguyen To: David Jeske X-From: git-owner@vger.kernel.org Tue Aug 13 18:59:10 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9Hw4-0002pq-Vb for gcvg-git-2@plane.gmane.org; Tue, 13 Aug 2013 18:59:09 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757803Ab3HMQ7E (ORCPT ); Tue, 13 Aug 2013 12:59:04 -0400 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:52704 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755686Ab3HMQ7C (ORCPT ); Tue, 13 Aug 2013 12:59:02 -0400 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 9D52838676; Tue, 13 Aug 2013 16:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=uzarTrnkFVXKIJ1FnIcUdnh1XtE=; b=w5Rrtp 413Cob9dZTdUB7lyH4/0kkbT+Yh1vcbBZjbcXL8EogmOJDd8JIPUcdF2NR0rasMZ 8UnYQtSlXkdmyuvwjhrVoHNCm6M9S6fmVtHANF1F11H03hFuSba2HgTi4bWhHW72 V5ZtlcXJgNwAHJf6/eTB3u7JMZeVfvrAAKscQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=M1h2ezLvF6KXKrvZwnwvzUL1VuOyYdgK DFt4zagtOgnzX8KMM/5aCMRqeH6iRKpq9NFzK7hxRiRf7rjMcqNafjHVxa407V8H vzGQoY+cGDubZ0hZfR4uB4QbDJR6Um/fISHklFgLb9diwnDkRyiemiFA/ZxbLeu/ Jl/OBXeJsE0= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 7928F38673; Tue, 13 Aug 2013 16:59:00 +0000 (UTC) Received: from pobox.com (unknown [50.161.4.97]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 4D6353866D; Tue, 13 Aug 2013 16:58:59 +0000 (UTC) In-Reply-To: (David Jeske's message of "Tue, 13 Aug 2013 08:36:26 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: A5E04986-0439-11E3-9727-E84251E3A03C-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: David Jeske writes: >> When you do "git commit --amend", >> the current commit will become dangling (in the sense that it's not >> referred by any ref, but the commit exists) and those are just noise >> in my opinion. > > This is *exactly* my point. > > There is no way to distinguish a commit which was accidentally and > implicitly dangled due to checkout or submodule update on a detached > head, from all those other intentionally dangling refs which were > explicitly handled with merge, rebase, amend. I do not follow. Just like "commit --amend", checking out another branch to leave a detached HEAD _is_ an explicit way to discard what you started experimenting behind, declaring it useless. Otherwise you would have saved it to some named branch. This of course assumes that, as you said in one of your earlier messages, the user knows what he is doing, though.