Commit c844a80
committed
remove_dir_recursively(): Add flag for skipping removal of toplevel dir
Add the REMOVE_DIR_KEEP_TOPLEVEL flag to remove_dir_recursively() for
deleting everything inside the given directory, but _not_ the given
directory itself.
Note that this does not pass the REMOVE_DIR_KEEP_NESTED_GIT flag, if set,
to the recursive invocations of remove_dir_recursively(). It is likely to
be a a bug that has been present since REMOVE_DIR_KEEP_NESTED_GIT was
introduced (a0f4afb), but this commit keeps the same behaviour for now.
Signed-off-by: Johan Herland <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 0dbe659 commit c844a80
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
| 1181 | + | |
1181 | 1182 | | |
1182 | 1183 | | |
1183 | 1184 | | |
1184 | 1185 | | |
1185 | 1186 | | |
1186 | 1187 | | |
1187 | 1188 | | |
| 1189 | + | |
1188 | 1190 | | |
1189 | | - | |
1190 | | - | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1191 | 1197 | | |
1192 | 1198 | | |
1193 | 1199 | | |
| |||
1202 | 1208 | | |
1203 | 1209 | | |
1204 | 1210 | | |
1205 | | - | |
| 1211 | + | |
1206 | 1212 | | |
1207 | 1213 | | |
1208 | 1214 | | |
| |||
1214 | 1220 | | |
1215 | 1221 | | |
1216 | 1222 | | |
1217 | | - | |
| 1223 | + | |
1218 | 1224 | | |
1219 | 1225 | | |
1220 | 1226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
0 commit comments