Commit 3353397
committed
Makefile: ask "ls-files" to list source files if available
The [ce]tags and cscope targets used to run "find" looking for any paths
that match '*.[chS]' to feed the list of source files to downstream xargs.
Use "git ls-files" if it is already available to us, and otherwise use a
tighter "find" expression that does not list directories and does not go
into our .git directory.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 703f05a commit 3353397
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
2118 | 2122 | | |
2119 | 2123 | | |
2120 | | - | |
| 2124 | + | |
2121 | 2125 | | |
2122 | 2126 | | |
2123 | 2127 | | |
2124 | | - | |
| 2128 | + | |
2125 | 2129 | | |
2126 | 2130 | | |
2127 | 2131 | | |
2128 | | - | |
| 2132 | + | |
2129 | 2133 | | |
2130 | 2134 | | |
2131 | 2135 | | |
| |||
0 commit comments