예제 #1
0
 public static extern unsafe int git_config_add_file_ondisk(
     git_config *cfg,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string path,
     git_config_level_t level,
     git_repository *repo,
     int force);
예제 #2
0
 public static extern unsafe int git_config_get_multivar_foreach(
     git_config *cfg,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string name,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string regexp,
     git_config_foreach_cb callback,
     void *payload);
예제 #3
0
 public static extern unsafe int git_config_set_multivar(
     git_config *cfg,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string name,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string regexp,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string value);
예제 #4
0
        internal unsafe LibGit2Configuration(git_config *config, string repositoryPath)
        {
            _config        = config;
            RepositoryPath = repositoryPath;

            // Create snapshot for reading values
            git_config *snapshot = null;

            ThrowIfError(git_config_snapshot(&snapshot, config), nameof(git_config_snapshot));
            _snapshot = snapshot;
        }
예제 #5
0
        internal unsafe LibGit2Configuration(ITrace trace, git_config *config)
        {
            _trace  = trace;
            _config = config;

            // Create snapshot for reading values
            _trace.WriteLine("Creating Git configuration snapshot...");
            git_config *snapshot = null;

            ThrowIfError(git_config_snapshot(&snapshot, config), nameof(git_config_snapshot));
            _snapshot = snapshot;
        }
예제 #6
0
 public static extern unsafe int git_config_delete_entry(
     git_config *cfg,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string name);
예제 #7
0
 public static extern unsafe int git_config_foreach(git_config *cfg, git_config_foreach_cb callback, void *payload);
예제 #8
0
 public static extern unsafe int git_config_get_string(
     [MarshalAs(CustomMarshaler, MarshalCookie = ManagedCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     out string @out,
     git_config *cfg,
     [MarshalAs(CustomMarshaler, MarshalCookie = NativeCookie, MarshalTypeRef = typeof(U8StringMarshaler))]
     string name);
예제 #9
0
 public static extern unsafe void git_config_free(git_config *cfg);
예제 #10
0
 public static extern unsafe int git_config_snapshot(git_config ** @out, git_config *config);
예제 #11
0
 public static extern unsafe int git_config_open_level(git_config ** @out, git_config *parent, git_config_level_t level);
예제 #12
0
 internal ConfigurationHandle(git_config *ptr, bool owned)
     : base((void *)ptr, owned)
 {
 }