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, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Andreas Ericsson Subject: Re: What's in git.git (stable) Date: Fri, 15 Dec 2006 16:48:30 +0100 Message-ID: <4582C3CE.3000902@op5.se> References: <7v4przfpir.fsf@assigned-by-dhcp.cox.net> <200612140959.19209.andyparkins@gmail.com> <7v7iwu93rv.fsf@assigned-by-dhcp.cox.net> <200612141136.59041.andyparkins@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Fri, 15 Dec 2006 15:48:48 +0000 (UTC) Cc: Jakub Narebski , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org User-Agent: Thunderbird 1.5.0.7 (X11/20060913) In-Reply-To: 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 1GvFId-0004b9-4j for gcvg-git@gmane.org; Fri, 15 Dec 2006 16:48:39 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbWLOPsc (ORCPT ); Fri, 15 Dec 2006 10:48:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752756AbWLOPsc (ORCPT ); Fri, 15 Dec 2006 10:48:32 -0500 Received: from linux-server1.op5.se ([193.201.96.2]:55280 "EHLO smtp-gw1.op5.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752755AbWLOPsb (ORCPT ); Fri, 15 Dec 2006 10:48:31 -0500 Received: from [192.168.1.20] (unknown [213.88.215.14]) by smtp-gw1.op5.se (Postfix) with ESMTP id 706426BCC7; Fri, 15 Dec 2006 16:48:30 +0100 (CET) To: Nicolas Pitre Sender: git-owner@vger.kernel.org Nicolas Pitre wrote: > On Fri, 15 Dec 2006, Jakub Narebski wrote: > >> It would be nice to have some generic place in git config to specify >> default options to git commands (at least for interactive shell). It >> cannot be done using aliases. Perhaps defaults. config variable? > > I would say the alias facility has to be fixed then. > > In bash you can alias "ls" to "ls -l" and it just works. > I think this is because git scripts that need a certain git command to work a certain way don't want some alias to kick in and destroy things for them. Shell-scripts would have the same problem if you alias "awk" to "grep" f.e., which is why prudent shell-scripters use the "unalias -a" thing. Anyways, this should be largely solvable by inventing a "--no-aliases" switch to the git wrapper, or by the scripts calling the programs they need directly which, afaik, bypasses the alias logic. If it doesn't, it should. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se