From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.6 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 58A791F89C for ; Fri, 20 Jan 2017 10:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751851AbdATKqW (ORCPT ); Fri, 20 Jan 2017 05:46:22 -0500 Received: from mout.gmx.net ([212.227.15.19]:58907 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751712AbdATKqV (ORCPT ); Fri, 20 Jan 2017 05:46:21 -0500 Received: from virtualbox ([37.24.141.236]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MHH6Z-1chyxe3jZT-00E7Pw; Fri, 20 Jan 2017 11:46:17 +0100 Date: Fri, 20 Jan 2017 11:46:17 +0100 (CET) From: Johannes Schindelin X-X-Sender: virtualbox@virtualbox To: =?UTF-8?Q?Nguy=E1=BB=85n_Th=C3=A1i_Ng=E1=BB=8Dc_Duy?= cc: git@vger.kernel.org Subject: Re: [PATCH/TOY] Shortcuts to quickly refer to a commit name with keyboard In-Reply-To: <20170120102249.15572-1-pclouds@gmail.com> Message-ID: References: <20170120102249.15572-1-pclouds@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-67886758-1484909178=:3469" X-Provags-ID: V03:K0:/EyzU4ihU2mvRYxL+BYHe3B6neaGrp8nuP/hFGQbUFtFNphNXk9 CsknQswLSWTT6aNJUJm5IZ3TNAi1SR/4ihjbntVD3vtjCODm3hEWahf/o0I0NnBUAYtmvWG 4wwtD0xqmCPTx+OGCjT9Edw2nFMXzWPAE78xFZL3VfsoJa2XNw5osECeyP0VQ2itNsPFOLE IUXK6u6Iznb4IjckfXqrw== X-UI-Out-Filterresults: notjunk:1;V01:K0:7cAEABR3cgA=:7CmTRYdsrYLIgRHh5odDrx IYmJCy4Q1huUH7ed6hYnuD3lQER7OfqW32vIKjkTS2KWUVB73Pf7giqLbuExvmFMKDih/IleQ ycNFoxE3KGPJHn2ExERUnWu2GAr01qFJWRaRXtd5pMElGd076f09JoLAwFWtEZrsf+5EuewSx GTOpdorMDNnj+iFIBGkNO0tfeagkLAmq64i66c8L4CZgWo316sVFjSPtXxza3WEsTyHBpwJM6 aM5ZQJdH4Go/GrZgs63zZfzg0buIA48lyBtVa5nEUTKksxKQuDOSXd3ifoOrdLft3aBteOJdy adHtkITtz6toTG+8aSX/I/3SLdAEyGWJvrKCyalhSC9Ua4g5IvU7So4SfCAOY+fZsWh3IHaEP ctDY34wxmayFdifdxkAwExjWp16qeqRVioI0xgMStUxomhw5cZNmqwoKHtGGpWLrCl73gpdla suQ5LyJ/ow0FnT9JbB7bH6b3Eo1HXZUbPQBLM0JUN0JxHWtFgYhN2Fqgniy4PJWBdqXcC5T9a lsiINxSiMZzKtO2bAfa/0YV9absYCqimOZXgaeJC1L99+WR6i99D41wn2HrTun6eVsWEo2gc7 D54JhfDsGzeJz5atEVomeEVw+Erug8WBE7X3VQE/4vk4mOVJv2ln68Klky6J6Y1bAWYSZYIeh oa40CNGDmLZc0WjHZk04y1DIXd51OQaSpRbnEG1cyF4IzUVEI91Hr0ZLuye3AGARdUyRJeJy0 fBOir1UEThW/YjRUtF311l67DuEl2oJZbe1MDhV4wi57EFUEEQzL4Nf5anSNjWKE2QP7i87ie ZM2Uhyn Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-67886758-1484909178=:3469 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Hi Duy, On Fri, 20 Jan 2017, Nguy=E1=BB=85n Th=C3=A1i Ng=E1=BB=8Dc Duy wrote: > OK This patch is horrible. Yeah ;-) > Though the idea is cool and I've found it very useful. So here it is. > Perhaps the idea may be revised a bit that's more suitable for more than > one user. Why not introduce a flag to "git log" that shows a keyboard-friendly name similar to what `git name-rev` would have said, except that the name would be generated using the name(s) specified on the command-line? Example: =09git log 8923d2d0 upstream/pu =09commit 8923d2d00192ceb1107078484cccf537cb51c1b5 (8923d2d0) =09... =09commit 9f500d6cf5eaa49391d6deca85fc864e5bd23415 (8923d2d0^) =09... =09commit f79c24a291a58845b08cfec7573e22cc153693e1 (8923d2d0~2) =09... =09commit c921c5bb63baaa16dc760de9549da55c8c89dc9c (upstream/pu) =09... =09commit 16793ba6b6333ba0cdee1adb53d979c3fbdb17bc (upstream/pu^) =09... Granted, this is still a little more cumbersome to type than @h1, but then, you can skip those round-robin games as well as the possibly backwards-incompatible extension of the rev syntax. Ciao, Johannes --8323329-67886758-1484909178=:3469--