Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 5/9] vcs_info quilt: fix standalone detection
- X-seq: zsh-workers 33185
- From: Marc Finet <m.dreadlock@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 5/9] vcs_info quilt: fix standalone detection
- Date: Tue, 16 Sep 2014 22:19:11 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=kSVnCznf5weyBh2qKDr+GVln0iMVnV6P08W09GOnfJY=; b=AOlEkARSI4icPTpEYy5SAYH8DgIxGYkAsALzGZnJT7ihOtvMUkrSYGrjEtjRsgxm6e 8QC1Ni7K+5RAmckhdF56r4A86xfQoolOd2ZQ9ghFpgtoRL3TzM+zK/EWg+FMds2ejaf2 ryCcTdoZEQCk1zyqcIR8ixOorU3IzGxXlt85/q0mcdnSOBnZrDcgUUM7mwB+jrCFZ3om 4ooy5s0MJZHHURUFJPazr1L8CtwXMpsjzC7x6B79I86gejT+5NFMsx3xkDtNucYnCxXI g7CD9M4mf4c02WTkcQV5axMc9wMJqjjUXaLUT8wcgND4V+8HAtq/V4LGhkw0lsNRbt52 GruQ==
- In-reply-to: <87ppey7d28.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1410557443-24178-1-git-send-email-m.dreadlock@gmail.com> <1410557443-24178-6-git-send-email-m.dreadlock@gmail.com> <87ppey7d28.fsf@ft.bewatermyfriend.org>
On Sun, 14 Sep 2014 11:42:55 +0200
Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> 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.
I can't remember on which case i fell on this case but
vcs_comm[detect_need_file] was set (and not cleared) by a previous call
hence finally not detecting quilt correctly. While reading at the patch
once more, it might not have interfered with quilt but by an other
backend that set vcs_comm[detect_need_file].
Marc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author