Ramkumar Ramachandra | 26ae337 | 2011-08-04 16:09:11 +0530 | [diff] [blame] | 1 | #include "cache.h" |
| 2 | #include "sequencer.h" |
| 3 | #include "strbuf.h" |
| 4 | #include "dir.h" |
| 5 | |
Jonathan Nieder | d596118 | 2011-12-10 07:06:12 -0600 | [diff] [blame] | 6 | void remove_sequencer_state(void) |
Ramkumar Ramachandra | 26ae337 | 2011-08-04 16:09:11 +0530 | [diff] [blame] | 7 | { |
| 8 | struct strbuf seq_dir = STRBUF_INIT; |
Ramkumar Ramachandra | 26ae337 | 2011-08-04 16:09:11 +0530 | [diff] [blame] | 9 | |
| 10 | strbuf_addf(&seq_dir, "%s", git_path(SEQ_DIR)); |
Jonathan Nieder | d596118 | 2011-12-10 07:06:12 -0600 | [diff] [blame] | 11 | remove_dir_recursively(&seq_dir, 0); |
Ramkumar Ramachandra | 26ae337 | 2011-08-04 16:09:11 +0530 | [diff] [blame] | 12 | strbuf_release(&seq_dir); |
Ramkumar Ramachandra | 26ae337 | 2011-08-04 16:09:11 +0530 | [diff] [blame] | 13 | } |