In the directory settings it is now possible to choose between a workbench or a git file filter. The later is new and lets git decide which files to display depending on the contents of the ```.gitignore``` file.
This also adds a new function to the utils-lib called ```gp_filelist_scan_directory_callback()```.
See this example screenshot: ![DirectorySettingsWithGitOption](https://user-images.githubusercontent.com/9009011/60295870-106e1400-9925-11e...)
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/879
-- Commit Summary --
* workbench: added option to let git decide which files to display
-- File Changes --
M build/workbench.m4 (3) M utils/src/filelist.c (109) M utils/src/filelist.h (5) M workbench/README (8) M workbench/src/Makefile.am (1) M workbench/src/dialogs.c (225) M workbench/src/dialogs.h (2) M workbench/src/plugin_main.c (9) M workbench/src/popup_menu.c (2) M workbench/src/utils.c (13) M workbench/src/utils.h (1) M workbench/src/wb_project.c (318) M workbench/src/wb_project.h (9)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/879.patch https://github.com/geany/geany-plugins/pull/879.diff
I need some help or advice regarding Travis CI. The build of the workbench plugin failed with this error message: ``` ../../../workbench/src/plugin_main.c:28:18: fatal error: git2.h: No such file or directory #include <git2.h> ``` I found this comment in the Travis CI config: ``` # Ubuntu 12.04 doesn't have libgit2, 14.04 has a too old one, so we build # our own for now. #- libgit2-dev ``` On my machine I have libgit2-dev installed (Ubuntu 18.04.2). How can I fix this issue?
There seems to be a logical error in the `.travis.yml`, the presence of a .pc file for libgit2 is tested [here](https://github.com/geany/geany-plugins/blob/4ddf2e7707d3e0305a3e463d4574e0f7...) but that doesn't check the version, it just accepts any version.
But that doesn't seem to be the issue here since it doesn't seem to execute the echo in the `then` clause or the build in the `else` clause, weird.
@LarsGit223 pushed 3 commits.
01007cf52469e9378467119f87afb69437303385 workbench: fixed wrong Gtk version check for 'gtk_widget_set_margin_start()' 59aaa6aeafed035243c7cafdda9cf6c5e9a3795d workbench: added missing '$(WORKBENCH_CFLAGS)' to makefile 80c6e1b298c12ed8d18fb6e6af607d3a976f0c58 workbench: added macros to deal with older libgit2 versions
@elextr: the issue was caused by an incomplete makefile in the workbench plugin. It missed ```$(WORKBENCH_CFLAGS)``` in the ```workbench_la_CFLAGS```. The result was that building it locally on my machine worked, but the Travis CI build failed.
Waited 3 weeks an Travis builds are fixed. So I merge this now.
Merged #879 into master.
github-comments@lists.geany.org