From: "Jay Soffian" <jaysoffian@gmail.com>
To: "Jeff King" <peff@peff.net>
Cc: "Junio C Hamano" <gitster@pobox.com>,
"Johannes Schindelin" <Johannes.Schindelin@gmx.de>,
"Nguyen Thai Ngoc Duy" <pclouds@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH 3/3] help: respect aliases
Date: Sun, 24 Feb 2008 21:10:00 -0500 [thread overview]
Message-ID: <76718490802241810m5f473156nc350eea07016e8f9@mail.gmail.com> (raw)
In-Reply-To: <20080224221737.GD31309@coredump.intra.peff.net>
On Sun, Feb 24, 2008 at 5:17 PM, Jeff King <peff@peff.net> wrote:
> If we have an alias "foo" defined, then the help text for
> "foo" (via "git help foo" or "git foo --help") now shows the
> definition of the alias.
Heh, now I can kill this alias of mine:
h = "!sh -c 'git alias \"$1\" || git help \"$1\"' -"
:-)
This too would be less ugly as a built-in:
alias = "! sh -c 'if test -z \"$1\"; then git config --list \
| expand \
| sed \"/^alias\\./!d; s/^alias\\.//; s/=/ /; s/ */ /g\" \
| sort | while read n v; do \
printf \"%-16s\" \"$n\"; echo \"$v\" | gnused \
\"s/\\(.\\{68\\}\\) /\\1\\n\t\t/g\" | expand; \
done; else git config \"alias.$1\"; fi' -"
:-)
j.
next prev parent reply other threads:[~2008-02-25 2:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1203890846.git.peff@peff.net>
2008-02-24 22:16 ` [PATCH 1/3] help: use parseopt Jeff King
2008-02-25 6:50 ` Christian Couder
2008-02-25 6:57 ` Jeff King
2008-02-25 7:16 ` Junio C Hamano
2008-02-24 22:17 ` [PATCH 2/3] make alias lookup a public, procedural function Jeff King
2008-02-24 22:17 ` [PATCH 3/3] help: respect aliases Jeff King
2008-02-25 2:10 ` Jay Soffian [this message]
2008-02-26 12:43 ` Johannes Schindelin
2008-02-26 14:56 ` Jay Soffian
2008-02-26 15:15 ` Johannes Schindelin
2008-02-26 20:14 ` Junio C Hamano
2008-02-26 20:31 ` Jay Soffian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76718490802241810m5f473156nc350eea07016e8f9@mail.gmail.com \
--to=jaysoffian@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).