forge支持不clone库的情况下,获取issues数据,具体如何操作?

It is also possible to add a repository to the local database without pulling all the data, which is useful if you want to create a single pull-request.

' a     (forge-add-repository)
This command adds a repository to the database.

It offers to either pull topics (now and in the future) or to only pull individual topics when the user invokes forge-pull-topic.

看了这部份官方介绍。 实际场景:在库A中访问库B的issues,但是不可clone 库B。

  1. 在库A目录下执行forge-add-repository 添加库B路径到forge库中。
  2. 执行forge-pull,从库B中获取issues过程中,提示需要配置库A的路径才能拉去。
  3. 最终forge-pull获取到的只有库A,无法获取库B中的issues。

正确操作:

  1. 添加库B到forge中:forge-add-repository 库B
  2. 进入forge库列表:forge-visit-repositories return
  3. 在forge库B中执行:forge-pull 完成之后就可以看到issues列表。

想在其他库目录下例如:库A中,访问库B的issues,只需要执行forge-visit-repositories 切换到库B。

结论结论:forge仅依赖forge-add-repositories库设置,其默认支持在git库的目录下获取该库的issues。