Skip to content
Newer
Older
100644 14 lines (11 sloc) 271 Bytes
26ae337 @artagnon revert: Introduce --reset to remove sequencer state
artagnon authored
1 #include "cache.h"
2 #include "sequencer.h"
3 #include "strbuf.h"
4 #include "dir.h"
5
d596118 @jrn revert: stop creating and removing sequencer-old directory
jrn authored
6 void remove_sequencer_state(void)
26ae337 @artagnon revert: Introduce --reset to remove sequencer state
artagnon authored
7 {
8 struct strbuf seq_dir = STRBUF_INIT;
9
10 strbuf_addf(&seq_dir, "%s", git_path(SEQ_DIR));
d596118 @jrn revert: stop creating and removing sequencer-old directory
jrn authored
11 remove_dir_recursively(&seq_dir, 0);
26ae337 @artagnon revert: Introduce --reset to remove sequencer state
artagnon authored
12 strbuf_release(&seq_dir);
13 }
Something went wrong with that request. Please try again.