28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
+
-
+
|
#include "add.h"
#include <assert.h>
/*
** COMMAND: add
**
** Usage: %fossil add FILE...
** Add one or more files to the current checkout such that these files
** will be added to the repository at the next checkin.
** will be inserted into the repository at the next commit.
*/
void add_cmd(void){
int i;
int vid;
db_must_be_within_tree();
vid = db_lget_int("checkout",0);
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
+
+
|
db_end_transaction(0);
}
/*
** COMMAND: rm
** COMMAND: del
**
** Usage: %fossil rm FILE...
** or: %fossil del FILE...
** Remove one or more files from the tree.
*/
void del_cmd(void){
int i;
int vid;
db_must_be_within_tree();
|