Re: [PATCH] tag: support --sort=version
On Wed, Feb 19, 2014 at 8:39 AM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 16 quoted lines
> --sort=version sorts tags as versions. GNU extension's strverscmp is
> used and no real compat implementation is provided so this is Linux only.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
> diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
> index 404257d..fc23dc0 100644
> --- a/Documentation/git-tag.txt
> +++ b/Documentation/git-tag.txt
> @@ -95,6 +95,10 @@ OPTIONS
> using fnmatch(3)). Multiple patterns may be given; if any of
> them matches, the tag is shown.
>
> +--sort=<type>::
> + Sort in a specific order. Supported type is "version". Prepend
> + "-" to revert sort order.
> +
> --column[=<options>]::
> --no-column::
> Display tag listing in columns. See configuration variable