From: Junio C Hamano Date: Thu, 12 Sep 2019 18:18:03 GMT Subject: Re: [PATCH v2 2/3] Makefile: strip leading ./ in $(FIND_SOURCE_FILES) Message-ID: In-Reply-To: <239ffa690cc0bf65e2ee7fbdbb9c481499e37020.1568309119.git.liu.denton@gmail.com> Denton Liu writes: > Unify the two possible invocations in $(FIND_SOURCE_FILES) by using sed > to remove the `./` prefix in the $(FIND) case. > diff --git a/Makefile b/Makefile > index b88b42d7ed..e2c693440b 100644 > --- a/Makefile > +++ b/Makefile > @@ -2610,6 +2610,7 @@ FIND_SOURCE_FILES = ( \ > -o \( -name 'trash*' -type d -prune \) \ > -o \( -name '*.[hcS]' -type f -print \) \ > -o \( -name '*.sh' -type f -print \) \ > + | sed -e 's|^\./||' \ > ) > > $(ETAGS_TARGET): FORCE An extra process and piping is a bit unfortunate, but this is purely a fallback position where it does not matter too much to expend one-shot overhead; it would only be needed until the user has a working "git ls-files" and starts hacking on our codebase, as this is used only by the xtags targets, which are only for developers. Thanks. Will queue.