From patchwork Wed Sep 4 17:55:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taylor Blau X-Patchwork-Id: 11131203 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D1961398 for ; Wed, 4 Sep 2019 17:55:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E57D8208E4 for ; Wed, 4 Sep 2019 17:55:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ttaylorr-com.20150623.gappssmtp.com header.i=@ttaylorr-com.20150623.gappssmtp.com header.b="TXF+QdMd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731756AbfIDRzE (ORCPT ); Wed, 4 Sep 2019 13:55:04 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42457 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730323AbfIDRzD (ORCPT ); Wed, 4 Sep 2019 13:55:03 -0400 Received: by mail-qt1-f194.google.com with SMTP id c9so61100qth.9 for ; Wed, 04 Sep 2019 10:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ttaylorr-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=FbiHNvqZOfesypl77qjQQLfDClp4lib6FIQo25AfdgI=; b=TXF+QdMdvoi8uUByTz/Q3xYcJfD9i7//Ttlb7w4Sf8XIWHcBoyfWbb8Dtmk3muqhFJ MadrlPFfpHMbChVsW3mj3RyWVVZL3SoS6Nf+WF8U85Z3u3MdQT4yC1HQFovmQlmE01Lb rtpRDZ/E6IurUh/PbsCqOBYUkHGS8EY5LPTL39S7N84v/fZ0Z4rjKdLmXD3UfpWy9HVu h80LNX3pBKGWLTjPxP9deHwRGdiuCD/fYEdf0+rAyrF5HvvXU6sihuiglSGSusJ29Nll +enJGR8UQTpEqHUXCz6MuAZoXl8I6c7EbCrg3BeiNV+sEQS+LnSvW+9BLEAIwYhrbn5S Q0fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=FbiHNvqZOfesypl77qjQQLfDClp4lib6FIQo25AfdgI=; b=SEZsMRDZT8Vxlbj2IzdDxkSOIjC5lfhGrqxL2Kl+Ng4iDdP9o5+fTTPZkWgN0JBrOq q8wEz2QS4+tgGplkL02zjETfvZbaI+wHnxh4p//xjh0Atkw8WloKUFmtyMLMlxG4hvag sKHfYz7/4B37n55C+bVKxAJ+jNdSgZwxCZJawYISgIgD+48USWpvsJexzz3PLxANfbsT 242kgk9TESnfnBd3G6JFy7UyjdUgMaKmeahXVrKUSSXpJV4JgxzAdIhi4PyQ+WlVfGog CBR1Rnio4ln8tX0azwBsZFf8xCJj6ZrHV5leXn1ZxPITQWKB+nw0A9sFOsjbLKg2OAiN T/Sw== X-Gm-Message-State: APjAAAWubTdasb7woR8lMihreqweUxpOOE6N8rli1ZDMidCYsVf+UU7G gKyw4Qn8cQKVxNGfhxF+AOIQYdBYSLI= X-Google-Smtp-Source: APXvYqzLL6krPwnssuvvVOFHZdiqxEx5LF8PiroiTkAe1/tqUQtSPvnkEw/4AKwAOwyHwGPUETjHpw== X-Received: by 2002:ac8:2b47:: with SMTP id 7mr41584957qtv.116.1567619702306; Wed, 04 Sep 2019 10:55:02 -0700 (PDT) Received: from localhost ([2605:9480:205:dfe1:24fd:2e2b:8aac:d853]) by smtp.gmail.com with ESMTPSA id z22sm10328648qti.1.2019.09.04.10.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 10:55:01 -0700 (PDT) Date: Wed, 4 Sep 2019 13:55:00 -0400 From: Taylor Blau To: git@vger.kernel.org Cc: peff@peff.net Subject: [PATCH 0/1] contrib/git-jump: support alias expansion Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi, I have been meaning to send this patch for a while, which teaches the 'git-jump' script how to respect user aliases for commands like 'diff', 'merge', and 'grep'. I often find myself parsing the output of 'git diff' (which I spell 'g di') in less, and then wanting to jump to some specific diff in a file, i.e., by running 'git jump diff -- '. But, I am so used to typing 'di' instead of 'diff', that I often write the later invocation as 'g jump di -- ', and 'git-jump' complains that it doesn't know what 'di' means. Let's rectify that by teaching it how to expand alises, which is implemented in the patch below. Thanks, Taylor Taylor Blau (1): contrib/git-jump/git-jump: support alias expansion contrib/git-jump/README | 4 ++++ contrib/git-jump/git-jump | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) --- 2.22.0