This will strip existing episode prefixes and set the schedule
Source:R/move_episode.R
strip_prefix.Rd
Episode order for Carpentries lessons originally used a strategy of prefixing files by a two-digit number to force a specific order by filename. This function will strip these numbers from the filename and set the schedule according to the original order.
Value
when write = TRUE
, the modified list of episodes. When
write = FALSE
, the modified call is returned.
Note
git will recognise this as deleting a file and then adding a new file
in the stage. If you run git add
, it should recognise that it is a rename.
See also
create_episode()
for creating new episodes, move_episode()
for
moving individual episodes around.