MCPcopy
hub / github.com/treeverse/dvc / _pack_named

Function _pack_named

dvc/config.py:407–417  ·  view source on GitHub ↗
(conf)

Source from the content-addressed store, hash-verified

405
406
407def _pack_named(conf):
408 # Drop empty sections
409 result = compact(conf)
410
411 # Transform remote.name -> 'remote "name"'
412 for key in ("remote", "machine", "db"):
413 for name, val in conf[key].items():
414 result[f'{key} "{name}"'] = val
415 result.pop(key, None)
416
417 return result
418
419
420def merge(into, update):

Callers 1

_save_configMethod · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected