From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: git commit/push and VC Date: Sat, 22 Nov 2014 17:59:44 +0900 Message-ID: <87wq6nsj9b.fsf@uwakimon.sk.tsukuba.ac.jp> References: <871toysqyq.fsf@rosalinde.fritz.box> <838uj57u5b.fsf@gnu.org> <87ppchd9dk.fsf@Gertrud.fritz.box> <83fvdd612c.fsf@gnu.org> <87h9xttmwa.fsf@uwakimon.sk.tsukuba.ac.jp> <83oas13p1y.fsf@gnu.org> <87egsvu7iw.fsf@uwakimon.sk.tsukuba.ac.jp> <87k32nwwxg.fsf@violet.siamics.net> <871tovu268.fsf@uwakimon.sk.tsukuba.ac.jp> <87fvdbwuk3.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416646813 18518 80.91.229.3 (22 Nov 2014 09:00:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2014 09:00:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ivan Shmakov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 22 10:00:06 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xs6Y1-00089f-TE for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2014 10:00:06 +0100 Original-Received: from localhost ([::1]:44420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs6Y1-0006QY-FJ for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2014 04:00:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs6Xr-0006QH-9i for emacs-devel@gnu.org; Sat, 22 Nov 2014 04:00:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xs6Xj-0002JT-Pk for emacs-devel@gnu.org; Sat, 22 Nov 2014 03:59:55 -0500 Original-Received: from shako.sk.tsukuba.ac.jp ([130.158.97.161]:51916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs6Xj-0002JB-FR for emacs-devel@gnu.org; Sat, 22 Nov 2014 03:59:47 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by shako.sk.tsukuba.ac.jp (Postfix) with ESMTPS id C422A1C3985; Sat, 22 Nov 2014 17:59:44 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id A0A1A1A2892; Sat, 22 Nov 2014 17:59:44 +0900 (JST) In-Reply-To: <87fvdbwuk3.fsf@violet.siamics.net> X-Mailer: VM undefined under 21.5 (beta34) "kale" acf1c26e3019 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 130.158.97.161 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177978 Archived-At: Ivan Shmakov writes: > > (and typically pull the ref from the other repo). >=20 > Refs are just human-readable aliases to the commit identifiers. > It=E2=80=99s perfectly possible to merge in a branch using the latter. How do you propose reliably identifying the *current* branch HEAD without dereferencing that ref? Even if it's possible, it's likely beyond the capability of the new users this thread is about. > > There are also reasons why using alternates is not necessarily > > great (especially for new users) -- eg, it means that rebase, > > commit --amend, filter-branch, and so on can corrupt the > > dependent repo. >=20 > Only if the objects comprising the original commit get deleted > in the process; I=E2=80=99m unsure on what are the conditions to that. GC will do it eventually. Might take a couple months. > Otherwise, the objects are immutable, and the likes of --amend > just create a brand new commit based on the given one; the > latter being left intact. Yes, I know that.