[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] [lmi-commits] master 1899dd1 1/2: Tell git to ignore wx build
From: |
Greg Chicares |
Subject: |
Re: [lmi] [lmi-commits] master 1899dd1 1/2: Tell git to ignore wx build directory |
Date: |
Mon, 9 Apr 2018 02:24:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 2018-04-09 00:18, Vadim Zeitlin wrote:
> On Sun, 8 Apr 2018 20:00:30 -0400 (EDT) Greg Chicares <address@hidden> wrote:
[...]
> GC> diff --git a/install_wx.sh b/install_wx.sh
[...]
> GC> +exclusions=$(git rev-parse --git-dir)/info/exclude
> GC> +if ! grep -q "^$build_dir/$" "$exclusions"
> GC> +then
> GC> + printf "%s/\n" "$build_dir" >> "$exclusions"
> GC> +fi
> GC> +
>
> I'm curious about why is this change necessary? The repository under
> /opt/lmi/third_party/vcs/wxWidgets shouldn't be used for any development
> (because this could make install_wx.sh script fail when upgrading it and
> might even lose some work), so why does it matter that the build directory
> appears as untracked in "git status" output there?
I ran git-status several times, hoping to see something simple and
clean, but the existence of a build directory added several lines
of stuff I didn't want to see. I always exclude subdirectories in
the lmi repository that I don't want to be reminded of, so I found
the extra output here distracting. AFAICT, '.git/info/exclude' is
the best choice for this purpose.