mirror of
https://github.com/git/git.git
synced 2024-10-31 22:37:54 +01:00
d596118d7a
Now that "git reset" no longer implicitly removes .git/sequencer that the operator may or may not have wanted to keep, the logic to write a backup copy of .git/sequencer and remove it when stale is not needed any more. Simplify the sequencer API and repository layout by dropping it. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 lines
271 B
C
13 lines
271 B
C
#include "cache.h"
|
|
#include "sequencer.h"
|
|
#include "strbuf.h"
|
|
#include "dir.h"
|
|
|
|
void remove_sequencer_state(void)
|
|
{
|
|
struct strbuf seq_dir = STRBUF_INIT;
|
|
|
|
strbuf_addf(&seq_dir, "%s", git_path(SEQ_DIR));
|
|
remove_dir_recursively(&seq_dir, 0);
|
|
strbuf_release(&seq_dir);
|
|
}
|