MCPcopy
hub / github.com/gitless-vcs/gitless / _auto_track

Function _auto_track

gitless/cli/gl_commit.py:117–122  ·  view source on GitHub ↗

Tracks those untracked files in the list.

(files, curr_b)

Source from the content-addressed store, hash-verified

115
116
117def _auto_track(files, curr_b):
118 """Tracks those untracked files in the list."""
119 for fp in files:
120 f = curr_b.status_file(fp)
121 if f.type == core.GL_STATUS_UNTRACKED:
122 curr_b.track_file(f.fp)
123
124
125def _op_continue(op, fn):

Callers 1

mainFunction · 0.85

Calls 2

status_fileMethod · 0.80
track_fileMethod · 0.80

Tested by

no test coverage detected