Re: [PATCH 00/14] Make git-pull a builtin
- From
Paul Tan <pyokagan@gmail.com>
- Date
- May 30, 2015, 08:00 UTC
- Message-ID
- <CACRoPnSCT58AYAvXuELX0eemdobPsHMkkJd3oLg8Sv_DxOf1CQ@mail.gmail.com>
- In-Reply-To
- <CACRoPnThv97e+f3ymuRCFB_u7_dbcOUcCtxUh6BmwDcUZMPjmA@mail.gmail.com>
On Sat, May 30, 2015 at 3:29 PM, Paul Tan <pyokagan@gmail.com> wrote:
Show 14 quoted lines
> Hi, > Okay, I'm trying this out in the next re-roll. I do agree that this > patch series should not touch anything in t/ at all. > > One problem(?) is that putting builtins/pull.o in the BUILTIN_OBJS and > leaving git-pull.sh in SCRIPT_SH in the Makefile will generate 2 > targets to ./git-pull (they will clobber each other). For GNU Make, > the last defined target will win, so in this case it just happens that > git-pull.sh will win because the build targets for the shell scripts > are defined after the build targets for the builtins, so this works in > our favor I guess. > > Regards, > Paul
Just to add on, I just discovered that test-lib.sh unsets all GIT_* environment variables "for repeatability", so the name "GIT_USE_BUILTIN_PULL" cannot be used. I'm tempted to just add a underscore just before the name ("_GIT_USE_BUILTIN_PULL") to work around this, since it's just a temporary thing.
Thanks, Paul