You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libgit-rs: add get_bool(), get_ulong(), and get_pathname() methods to ConfigSet
Expand the ConfigSet API with support for additional configuration value types:
- get_bool(): Parse boolean configuration values using Git's
git_configset_get_bool() C function. Handles all Git boolean formats
(true/false, yes/no, on/off, 1/0) and edge cases like "00" and "100".
- get_ulong(): Parse unsigned long integers for large numeric values
using git_configset_get_ulong().
- get_pathname(): Parse file paths using git_configset_get_pathname(),
returning PathBuf for type safety.
All functions follow the established pattern of existing get_* methods,
using Git's C functions for consistent parsing behavior with the main
Git codebase.
Add wrapper functions in public_symbol_export.[ch] to expose the
required C functions to the Rust FFI layer.
Includes comprehensive tests covering normal cases, edge cases, and
error handling for all new functionality.
Signed-off-by: ionnss <[email protected]>
0 commit comments