From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: default aliases (ci, di, st, co) Date: Mon, 13 Jul 2009 02:40:27 -0400 Message-ID: <20090713064027.GA10300@coredump.intra.peff.net> References: <85b5c3130907081649s37f726f7id1a64f2fdbe609f@mail.gmail.com> <7vskh53iyt.fsf@alter.siamese.dyndns.org> <4A56786B.7040904@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Junio C Hamano , Jakub Narebski , Ondrej Certik , Git Mailing List To: Paolo Bonzini X-From: git-owner@vger.kernel.org Mon Jul 13 08:40:40 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQFDK-00007t-P2 for gcvg-git-2@gmane.org; Mon, 13 Jul 2009 08:40:39 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbZGMGkb (ORCPT ); Mon, 13 Jul 2009 02:40:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751726AbZGMGka (ORCPT ); Mon, 13 Jul 2009 02:40:30 -0400 Received: from peff.net ([208.65.91.99]:49759 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750934AbZGMGk3 (ORCPT ); Mon, 13 Jul 2009 02:40:29 -0400 Received: (qmail 31470 invoked by uid 107); 13 Jul 2009 06:42:26 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.40) with (AES128-SHA encrypted) SMTP; Mon, 13 Jul 2009 02:42:26 -0400 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Mon, 13 Jul 2009 02:40:27 -0400 Content-Disposition: inline In-Reply-To: <4A56786B.7040904@gnu.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, Jul 10, 2009 at 01:08:27AM +0200, Paolo Bonzini wrote: > Yes, it's in the wiki and in my .gitconfig: > > whatis = "!sh -c 'git show -s --pretty=\"format:%h (%s, %ai\" > \"$@\" | sed -e \"s/ [012][0-9]:[0-5][0-9]:[0-5][0-9] > [-+][0-9][0-9][0-9][0-9]$/)\\n/\"' -" Is there a reason not to simply use: whatis = "show -s --pretty='format:%h (%s, %ad)' --date=short" these days? -Peff P.S. Actually, I use --no-pager in my version, so I use 'tformat' to explicitly end it with a newline, which is nicer for actually showing the output on the terminal.