From mboxrd@z Thu Jan 1 00:00:00 1970 From: Franck Subject: [QUESTION] about .git/info/grafts file Date: Tue, 17 Jan 2006 18:32:01 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-From: git-owner@vger.kernel.org Tue Jan 17 18:32:44 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eyugm-00061e-Bd for gcvg-git@gmane.org; Tue, 17 Jan 2006 18:32:13 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932231AbWAQRcF (ORCPT ); Tue, 17 Jan 2006 12:32:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932232AbWAQRcE (ORCPT ); Tue, 17 Jan 2006 12:32:04 -0500 Received: from zproxy.gmail.com ([64.233.162.201]:13944 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S932231AbWAQRcC convert rfc822-to-8bit (ORCPT ); Tue, 17 Jan 2006 12:32:02 -0500 Received: by zproxy.gmail.com with SMTP id 14so1403413nzn for ; Tue, 17 Jan 2006 09:32:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JNtFp8UW8XsieixYcKuyTpc6B54O06yAcS9Szbuy8jIGHwD1w+QW96qYkeooiYjg5OY6Jx/JX0RMAGqG/E1IxK12NoQSElQJx8NR4LkWpxq7Uiz76p5sYGCsxlE8Fjl/pv1FPpeCWSXNpzQoV6/ZuG2HvBx0ouNsTLpkn0IzhWE= Received: by 10.36.196.6 with SMTP id t6mr5769772nzf; Tue, 17 Jan 2006 09:32:01 -0800 (PST) Received: by 10.36.50.18 with HTTP; Tue, 17 Jan 2006 09:32:01 -0800 (PST) To: Git Mailing List In-Reply-To: Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Hi, I'm wondering why the "grafts" files is not involved during push/pull/clone operations ? Another question regarding grafting use case. Let's say I have my origin branch looks like: origin ---0---1------300 000---300 001---300 002 Let's say that the 300 000th commit is where I started my work by using: $ git-checkout -b master <300 000 shaid> I do some work on master branch and get the following a---b---c---d master / origin ---0---1---...---300,000---300,001---300,002 Now, I would like to make my own public repository based on my work but before pushing master branch in that repo I would like to get rid of all unused commits [0 299,999]. Indeed each of these commits do not have useful history for my work. So I used grafts things to have: a---b---c---d master / origin 300,000---300,001---300,002 But now if I ask to git for: $ git-merge-base master origin # nothing So git failed to found the common commit object which should be 300,000. Why ? In other the hand, if I use grafting to get: a---b---c---d master / origin 2999,999---300,000---300,001---300,002 $ git-merge-base master origin 2dcaaf2decd31ac9a21d616604c0a7c1fa65d5a4 So now git found the common commit. Can anybody explain me why ? Do you think it's a good usage of git ? Or should I do otherwise to setup my public repository ? Thanks -- Franck