From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zeeshan Ali (Khattak)" Subject: Re: Support of '^' as alias for 'HEAD^' Date: Mon, 16 Jul 2012 00:48:09 +0300 Message-ID: References: <7vzk725c86.fsf@alter.siamese.dyndns.org> <7vr4se5bg4.fsf@alter.siamese.dyndns.org> <7vmx32590u.fsf@alter.siamese.dyndns.org> <500301BF.9080505@ira.uka.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Junio C Hamano , =?UTF-8?B?U3RlZmFuIE7DpHdl?= , git@vger.kernel.org To: Holger Hellmuth X-From: git-owner@vger.kernel.org Sun Jul 15 23:49:01 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqWgP-0001N0-CL for gcvg-git-2@plane.gmane.org; Sun, 15 Jul 2012 23:48:53 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752301Ab2GOVsL (ORCPT ); Sun, 15 Jul 2012 17:48:11 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:35222 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938Ab2GOVsK (ORCPT ); Sun, 15 Jul 2012 17:48:10 -0400 Received: by pbbrp8 with SMTP id rp8so8950430pbb.19 for ; Sun, 15 Jul 2012 14:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=4dvI2AdonS/hhvL+lBH1bT5VqsvCESbzXQSoLdB07lM=; b=saVBnrY05Tk6hioyWDXK/kyKTG2ozQW0VrVOzpPqr4sztA44xEWWFvQrZXkFxsoSCz jTrf+cUQNvJH9AdzKU9N4U5TTcqayIRQuhisxrZqJTUHeyhyGJnzDBInILOdFZaOURuz sYRZSOHN1AdyvOSR4sJXUoQ5khuoL77XlPLn2hSc5h/bq3hMwiOQREWVTJNGioLqKyOm TRBpVX1vnw3vAxAxFool3MOhhkfHoEnD+eZImxCsXncV80y2ElqIV9mhsRAKm80L87u2 y5lMRe9fv9d30PdKBRJ1FlOzrk3VbEwWMnhP0xJwaxF+NTkQPeJJ2xp8qpnnWvH7b5hJ +urw== Received: by 10.66.74.69 with SMTP id r5mr18308000pav.56.1342388889560; Sun, 15 Jul 2012 14:48:09 -0700 (PDT) Received: by 10.68.231.33 with HTTP; Sun, 15 Jul 2012 14:48:09 -0700 (PDT) In-Reply-To: <500301BF.9080505@ira.uka.de> X-Google-Sender-Auth: cJ-VI3DAX1GKZb0MgGqN5yf_NnI Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Sun, Jul 15, 2012 at 8:45 PM, Holger Hellmuth wrote: > Am 15.07.2012 00:24, schrieb Zeeshan Ali (Khattak): > >> On Sun, Jul 15, 2012 at 12:26 AM, Junio C Hamano >> wrote: >>> >>> "Zeeshan Ali (Khattak)" writes: >>> >>>> What about '^' and '^^' that I suggested? > > > If you want a shortcut, you might try this: > > echo "ref: HEAD" > .git/h > > Then you can use 'h' instead of 'HEAD'. > > Tested it and it seemed to work. If not someone on this list surely will > correct me. Thanks, was hoping to have something thats supported out of the box in future git but I guess I can settle for a local hack too. :) -- Regards, Zeeshan Ali (Khattak) FSF member#5124