build: enable developer mode for all working trees
PATCH 1/1 build: enable developer mode for all working trees
Developer mode was detected if .git was a directory. Linked git working trees created by git worktree add contain .git file instead of .git directory. Developer mode was not detected for such directories. Detect developer mode by the presence of .git path.
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -20,7 +20,7 @@ developer_mode = false if get_option('developer_mode').auto() if meson.version().version_compare('>=0.53') # fs module available fs = import('fs') - developer_mode = fs.is_dir('.git') + developer_mode = fs.exists('.git') endif else developer_mode = get_option('developer_mode').enabled()
Signature · 1 line
2.33.1
Quoted 10 lines · On Wed, 10 Aug 2022 20:40:58 +0300 Dmitry Kozlyuk <[email protected]>…
Developer mode was detected if
.gitwas a directory. Linked git working trees created bygit worktree addcontain.gitfile instead of.gitdirectory. Developer mode was not detected for such directories. Detect developer mode by the presence of.gitpath.Fixes bc4617433845 ("build: enable a developer mode setting")Signed-off-by Dmitry Kozlyuk <[email protected]>
Ferruh Yigit
Acked-byQuoted 9 lines · Stephen Hemminger
Quoted 6 lines · On Wed, 10 Aug 2022 20:40:58 +0300 Dmitry Kozlyuk <[email protected]>…
Developer mode was detected if
.gitwas a directory. Linked git working trees created bygit worktree addcontain.gitfile instead of.gitdirectory. Developer mode was not detected for such directories. Detect developer mode by the presence of.gitpath.
Quoted 6 lines
Quoted 4 lines
Fixes bc4617433845 ("build: enable a developer mode setting")Signed-off-by Dmitry Kozlyuk <[email protected]>
Thomas Monjalon
Applied16/08/2022 10:51, Ferruh Yigit:
Quoted 10 lines · Stephen Hemminger
Quoted 9 lines
Quoted 6 lines · On Wed, 10 Aug 2022 20:40:58 +0300 Dmitry Kozlyuk <[email protected]>…
Developer mode was detected if
.gitwas a directory. Linked git working trees created bygit worktree addcontain.gitfile instead of.gitdirectory. Developer mode was not detected for such directories. Detect developer mode by the presence of.gitpath.
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Fixes bc4617433845 ("build: enable a developer mode setting")Signed-off-by Dmitry Kozlyuk <[email protected]>Acked-by Ferruh Yigit <[email protected]>
Good catch!
I am a user of the "git worktree" feature, it is very convenient to do some parallel work and not mess recompilation.
Applied, thanks.