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

Re: Misc patches for git completion and vcs_info



The Fri, 12 Sep 2014 16:50:46 -0700, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote 

> On Sep 12, 11:30pm, Marc Finet wrote:
> }
> } Below is a list of patches that i added in my current zsh (based
> on } tonight's master). Please consider them for review as my
> zsh-level is } currently very low (e.g. patch 2) and i might have
> broken other use-cases } (patch 4 for instance makes me a little
> bit nervous as it seems to easy).
> 
> (I think you left out the list.)
My bad, i'm not yet fluent with git send-email.
 
> I'll leave it to one of the people who more regularly messes with
> VCS_Info to apply these, but here's my brief take on each of them:
> 
> [PATCH 1/9] vcs_info examples: fix typo
> 
>  - no issues with this one
> 
> [PATCH 2/9] completion git: support aliases when \n exist
> 
>  - looks OK, but my "git config" foo is too weak to assess
> 
> PATCH 3/9] vcs_info git: detect revert or cherry-pick with multiple
> commits
> 
>  - no issues
> 
> [PATCH 4/9] vcs_info git: set rrn before using it
> 
>  - seems pretty obvious
> 
> [PATCH 5/9] vcs_info quilt: fix standalone detection
> 
>  - I'm not sure this is correct; do we need to differentiate (( $#
> == 1 )) from [[ -z "$2" ]] ?
Since VCS_INFO_bydir_detect would use the vcs_comm[detect_need_file]:
    for file in ${(s: :)${vcs_comm[detect_need_file]}}; do ...
we have to (re)set it, but i admit that setting it this way (with
a non-existent value) might not be the best way.

> 
> [PATCH 6/9] vcs_info quilt: fix unapplied detection on sub-directory
> 
>  - $(basename $patches) can be replaced with ${patches:t}
Ok (I'll try to remember more parameter expansions).

> [PATCH 7/9] vcs_info git: fix applied-string name
> 
>  - seems pretty obvious
> 
> [PATCH 8/9] vcs_info git: consider patches for rebase
> 
>  - needs git foo currently beyond me to confirm correctness
> 
> [PATCH 9/9] completion git: fix send-email --confirm values
> 
>  - no issues

Thanks for the review,

Marc.



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