From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Jakub Narebski Subject: Re: [PATCH] git-clone: use wildcard specification for tracking branches Date: Sat, 16 Dec 2006 10:39:38 +0100 Organization: At home Message-ID: References: <7v4przfpir.fsf@assigned-by-dhcp.cox.net> <7vfybgjj7k.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE NNTP-Posting-Date: Sat, 16 Dec 2006 09:37:28 +0000 (UTC) Return-path: Envelope-to: gcvg-git@gmane.org X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host-81-190-25-107.torun.mm.pl Mail-Copies-To: jnareb@gmail.com User-Agent: KNode/0.10.2 Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvVyv-00022g-Kc for gcvg-git@gmane.org; Sat, 16 Dec 2006 10:37:25 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965353AbWLPJhV convert rfc822-to-quoted-printable (ORCPT ); Sat, 16 Dec 2006 04:37:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965355AbWLPJhV (ORCPT ); Sat, 16 Dec 2006 04:37:21 -0500 Received: from main.gmane.org ([80.91.229.2]:58887 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965353AbWLPJhU (ORCPT ); Sat, 16 Dec 2006 04:37:20 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GvVyn-0003Wo-7w for git@vger.kernel.org; Sat, 16 Dec 2006 10:37:17 +0100 Received: from host-81-190-25-107.torun.mm.pl ([81.190.25.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Dec 2006 10:37:17 +0100 Received: from jnareb by host-81-190-25-107.torun.mm.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Dec 2006 10:37:17 +0100 To: git@vger.kernel.org Sender: git-owner@vger.kernel.org Junio C Hamano wrote: > This stops enumerating the set of branches found on the remote > side when a clone was made in the configuration file. =A0Instead, > a single entry that maps each remote branch to the local > tracking branch for the remote under the same name is created. >=20 > Doing it this way not only shortens the configuration file, but > automatically adjusts to a new branch added on the remote side > after the clone is made. [...] Does this deal with non-fast-forward branches like 'pu'? Does it add $head_points_at at the beginning, before glob... wait, this is not needed if there is branch.$head_points_at.merge. But perhaps it still would be better to have: [remote "origin"] url =3D git://git.kernel.org/pub/scm/git/git.git fetch =3D refs/heads/master:refs/remotes/origin/master fetch =3D refs/heads/*:refs/remotes/origin/* fetch =3D+refs/heads/pu:refs/remotes/origin/pu [branch "master"] remote =3D origin merge =3D refs/heads/master ;# full spec of remote branch But this is very nice. Thanks. --=20 Jakub Narebski Warsaw, Poland ShadeHawk on #git