git-worktree: Parse wrap files instead of meson introspect
authorNirbheek Chauhan <nirbheek@centricular.com>
Sat, 23 Nov 2019 11:26:34 +0000 (16:56 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Sat, 23 Nov 2019 11:38:17 +0000 (17:08 +0530)
commita950c286ba9d9ac8554d9b853a9cc3ed4846c6de
treea26dd70b69b52bcc4d7818cddecc6b7cf5caf6e0
parentd72ce5f14eea170f63db3f9c84f920d1de4e2cf7
git-worktree: Parse wrap files instead of meson introspect

meson introspect is the wrong approach since it:

* Requires a pre-existing build directory for some branch
* Gives us potentially incorrect information since it tells us
  subproject details for the current branch, not the branch we're
  checking out.
* Does not allow us to share the git repos for non-gst repos since it
  can't tell us the git branches for them.

Instead, parse the wrap files in the branch we're checking out since
they're just INI-style config files.
checkout-branch-worktree