comparison +mpm/checkout.m @ 7:309cc6c0cd75

Change names in ui
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Sep 2018 17:05:03 +0200
parents +mpm/leave.m@19c4af287596
children 02c290e2018c
comparison
equal deleted inserted replaced
6:19c4af287596 7:309cc6c0cd75
1 % Leave project in current folder
2 function leave(d)
3 if ~exist('d', 'var') || isempty(d)
4 d = '';
5 end
6
7 state = mpm.load_state();
8
9 sp = mpm.subpaths(d);
10 for i = 1:length(sp)
11 subpath = fullfile(pwd, sp{i});
12 rmpath(subpath);
13 state.added_paths.remove(subpath);
14 end
15
16 mpm.save_state(state);
17 end