MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getServerName

Function getServerName

out/cli.cjs:47851–47861  ·  view source on GitHub ↗
(host)

Source from the content-addressed store, hash-verified

47849 return host.substring(0, idx);
47850 }
47851 function getServerName(host) {
47852 if (!host) {
47853 return null;
47854 }
47855 assert2.strictEqual(typeof host, "string");
47856 const servername = getHostname(host);
47857 if (net3.isIP(servername)) {
47858 return "";
47859 }
47860 return servername;
47861 }
47862 function deepClone(obj) {
47863 return JSON.parse(JSON.stringify(obj));
47864 }

Callers

nothing calls this directly

Calls 2

getHostnameFunction · 0.85
isIPMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…