Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion for git log --reverse



2008/9/22 Jörg Sommer <joerg@xxxxxxxxxxxx>:
> commit a22661303c034f9cb7bc5bc186370c8201598192
> Author: Jörg Sommer <joerg@xxxxxxxxxxxx>
> Date:   Mon Sep 22 19:03:41 2008 +0200
>
>    Add completion of option --reverse
>
> diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
> index 21115cd..c8a1282 100644
> --- a/Completion/Unix/Command/_git
> +++ b/Completion/Unix/Command/_git
> @@ -4281,12 +4281,13 @@ __git_setup_revision_arguments () {
>     '--cherry-pick[omit any same-change commits]'
>     '--graph[draw a graphical representation of the commit history]'
>     '--reflog[show all commits from reflogs]'
> -    '(-g --walk-reflogs)'{-g,--walk-reflogs}'[walk reflog entries from most recent to oldest]'
> +    '(-g --walk-reflogs --reverse)'{-g,--walk-reflogs}'[walk reflog entries from most recent to oldest]'

In cvs there's
+    '(-g --walk-reflogs reverse)'{-g,--walk-reflogs}'[walk reflog
entries from most recent to oldest]'

ie the -- is missing for --reverse.


-- 
Mikael Magnusson


Messages sorted by: Reverse Date, Date, Thread, Author