[gnome-builder] git: add status options and limit to workdir



commit 9527236a302288b4c03589697131ba4cfc72ca01
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 11 15:24:58 2017 -0800

    git: add status options and limit to workdir
    
    Improve the result set we get when looking at the file status.

 src/plugins/git/ide-git-vcs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/git/ide-git-vcs.c b/src/plugins/git/ide-git-vcs.c
index 460cc02..a292c4e 100644
--- a/src/plugins/git/ide-git-vcs.c
+++ b/src/plugins/git/ide-git-vcs.c
@@ -631,7 +631,9 @@ ide_git_vcs_list_status_worker (GTask        *task,
     relative = g_file_get_relative_path (workdir, state->directory_or_file);
 
   strv[0] = relative;
-  options = ggit_status_options_new (0, 0, (const gchar **)strv);
+  options = ggit_status_options_new (GGIT_STATUS_OPTION_DEFAULT,
+                                     GGIT_STATUS_SHOW_WORKDIR_ONLY,
+                                     (const gchar **)strv);
 
   store = g_list_store_new (IDE_TYPE_VCS_FILE_INFO);
   g_set_object (&state->store, store);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]