[libgit2-glib] config: ggit_config_refresh is not provided anymore



commit 78117ae7667be2513de5000190cc667feb540448
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jan 18 12:47:28 2015 +0100

    config: ggit_config_refresh is not provided anymore
    
    libgit2 is now a bit smarter about this and does the refresh
    on read and write so there is no need to explicitely make a refresh.

 libgit2-glib/ggit-config.c |   29 -----------------------------
 libgit2-glib/ggit-config.h |    3 ---
 2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/libgit2-glib/ggit-config.c b/libgit2-glib/ggit-config.c
index 9be6903..834ce69 100644
--- a/libgit2-glib/ggit-config.c
+++ b/libgit2-glib/ggit-config.c
@@ -264,35 +264,6 @@ ggit_config_add_file (GgitConfig      *config,
 }
 
 /**
- * ggit_config_refresh:
- * @config: a #GgitConfig.
- * @error: a #GError for error reporting, or %NULL.
- *
- * Reloads changed config files.
- *
- * A config file may be changed on disk out from under the in-memory
- * config object. This function causes us to look for files that have
- * been modified since we last loaded them and refresh the config with
- * the latest information.
- */
-void
-ggit_config_refresh (GgitConfig  *config,
-                     GError     **error)
-{
-       gint ret;
-
-       g_return_if_fail (GGIT_IS_CONFIG (config));
-       g_return_if_fail (error == NULL || *error == NULL);
-
-       ret = git_config_refresh (_ggit_native_get (config));
-
-       if (ret != GIT_OK)
-       {
-               _ggit_error_set (error, ret);
-       }
-}
-
-/**
  * ggit_config_get_int32:
  * @config: a #GgitConfig.
  * @name: the name of the configuration value.
diff --git a/libgit2-glib/ggit-config.h b/libgit2-glib/ggit-config.h
index 9d7d2d5..dde9f4b 100644
--- a/libgit2-glib/ggit-config.h
+++ b/libgit2-glib/ggit-config.h
@@ -78,9 +78,6 @@ void         ggit_config_add_file      (GgitConfig               *config,
                                         gboolean                  force,
                                         GError                  **error);
 
-void         ggit_config_refresh       (GgitConfig               *config,
-                                        GError                  **error);
-
 gint32       ggit_config_get_int32     (GgitConfig               *config,
                                         const gchar              *name,
                                         GError                  **error);


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