Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ xstrdup_or_null
Function
xstrdup_or_null
git-compat-util.h:912–915 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
910
} while (0)
911
912
static inline char *xstrdup_or_null(const char *str)
913
{
914
return str ? xstrdup(str) : NULL;
915
}
916
917
static inline size_t xsize_t(off_t len)
918
{
Callers
15
git_system_config
Function · 0.85
git_global_config_paths
Function · 0.85
configset_add_value
Function · 0.85
parse_reference_uri
Function · 0.85
apply_repository_format
Function · 0.85
apply_ref_filter
Function · 0.85
copy_pathspec
Function · 0.85
grep_source_init_file
Function · 0.85
grep_source_init_oid
Function · 0.85
unpack_trees
Function · 0.85
add_mapping
Function · 0.85
http_options
Function · 0.85
Calls
1
xstrdup
Function · 0.85
Tested by
1
copy_pathspec
Function · 0.68