Re: [RFC PATCH v2 1/2] Makefile: add check-headers target

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC PATCH v2 1/2] Makefile: add check-headers target

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:02:28

Matthieu Moy [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
quoted
David Aguilar [off-list ref] writes:
quoted
+IFS='
+'
+git ls-files *.h ewah/*.h vcs-svn/*.h xdiff/*.h |
Hmm.  This is only for true developers (not one who merely compiles
after expanding a tarball), so "git ls-files" may probably be OK.

But "/bin/ls" would be equally fine for that, no?
Actually, since this is "| while read header", I have to wonder why this
is not written as

for header in .h ewah/*.h vcs-svn/*.h xdiff/*.h
do
	...
done
Yes, that would be even better.  Then you wouldn't even have to
worry about $IFS dance.

Re: [RFC PATCH v2 1/2] Makefile: add check-headers target

From: David Aguilar <hidden>
Date: 2016-06-15 23:02:28

On Mon, Sep 08, 2014 at 12:57:46PM -0700, Junio C Hamano wrote:
Matthieu Moy [off-list ref] writes:
quoted
Junio C Hamano [off-list ref] writes:
quoted
David Aguilar [off-list ref] writes:
quoted
+IFS='
+'
+git ls-files *.h ewah/*.h vcs-svn/*.h xdiff/*.h |
Hmm.  This is only for true developers (not one who merely compiles
after expanding a tarball), so "git ls-files" may probably be OK.

But "/bin/ls" would be equally fine for that, no?
Actually, since this is "| while read header", I have to wonder why this
is not written as

for header in .h ewah/*.h vcs-svn/*.h xdiff/*.h
do
	...
done
Yes, that would be even better.  Then you wouldn't even have to
worry about $IFS dance.
The original motivation was to avoid picking up the generated
common-cmds.h header file.

It was the N_() function that was messing it up.

Would it make sense to split out a separate patch that makes common-cmds.h
check-headers clean?
-- 
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help