git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/3] help: Add '--follow-alias' option

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 15, 2012, 06:00 UTC
Message-ID
<7vehsummit.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1331779969-8641-2-git-send-email-namhyung.kim@lge.com>
Namhyung Kim <namhyung.kim@lge.com> writes:
Show 11 quoted lines
> The --follow-alias option will look up the alias definitions and
> use the first word as a command. For example, if I set my aliases
> as follows:
>
>  $ git help br
>  `git br' is aliased to `git branch'
>  $ git help ru
>  `git ru' is aliased to `git remote update'
>
> adding --follow-alias (or -f) option will show man pages of
> git-branch and git-remote, respectively.
What would happen when somebody has this?
	[alias]
        	br = branch --list
	$ git help --follow-alias br
	... man page for git-branch is shown ...
NAK.
> +-f::
> +--follow-alias::
> +	Read alias definitions and use its first word as a command name
> +	(if any).

Also, please do not let a potentially ill-conceived option to squat on a short and sweet single letter option name, until it proves to be useful.

Previous: Namhyung KimNext: 김남형
Message 3 of 16 in “help: Fix help message for aliases”
  1. 1/3 help: Fix help message for aliasesNamhyung Kim, Mar 15, 2012
  2. 2/3 help: Add '--follow-alias' optionNamhyung Kim, Mar 15, 2012
  3. Junio C HamanoMar 15, 2012
  4. 김남형Mar 15, 2012
  5. Junio C HamanoMar 15, 2012
  6. Namhyung KimMar 15, 2012
  7. Junio C HamanoMar 15, 2012
  8. 3/3 help: Add 'help.follow-alias' config itemNamhyung Kim, Mar 15, 2012
  9. Junio C HamanoMar 15, 2012
  10. Namhyung KimMar 15, 2012
  11. Jeff KingMar 15, 2012
  12. 김남형Mar 15, 2012
  13. Jeff KingMar 15, 2012
  14. Junio C HamanoMar 15, 2012
  15. 김남형Mar 15, 2012
  16. Junio C HamanoMar 15, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.