emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master da4ce83: * nt/INSTALL: Update instructions for


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master da4ce83: * nt/INSTALL: Update instructions for running autogen.sh
Date: Fri, 02 Oct 2015 11:50:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>   if test -d .git; then
>
>      # Configure 'git diff' hunk header format.
>
>      git config 'diff.elisp.xfuncname' \
>        '^\(def[^[:space:]]+[[:space:]]+([^()[:space:]]+)' || exit
>      git config 'diff.texinfo.xfuncname' \                  ^^^^^^^
>        'address@hidden:space:]]+([^,[:space:]][^,]+)' || exit
>                                                 ^^^^^^^
>
> It exits with an error message, which in my book means it "fails".

Hmm... I see.
So the "test -d .git" ensures that this code is only run when Git was
used to get the code, so we can reasonably assume that Git is (still)
available.  I understand your text better now, thanks.

Still, I think the above code is making a poor choice.  Better emit the
warning and keep on going: these "git config" settings are sufficiently
important to justify aborting the whole operation, IMO.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]