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

Re: [PATCH 5/9] vcs_info quilt: fix standalone detection



Marc Finet wrote:
[...]
> -    if [[ -n "${file}" ]]; then
> -        oldfile=${vcs_comm[detect_need_file]}
> -        vcs_comm[detect_need_file]=${file}
> -    fi
> +    oldfile=${vcs_comm[detect_need_file]}
> +    vcs_comm[detect_need_file]=${file}
>      VCS_INFO_bydir_detect ${dir}
>      ret=$?
> -    [[ -n "${file}" ]] && vcs_comm[detect_need_file]=${oldfile}
> +    vcs_comm[detect_need_file]=${oldfile}

I don't think this changes anything really, but the removing the
conditionals makes the code a bit easier to read. So ACK.


Regards, Frank



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