]> git.ipfire.org Git - thirdparty/git.git/blobdiff - rebase-interactive.c
rebase -i: introduce the 'break' command
[thirdparty/git.git] / rebase-interactive.c
index 4a9a10eff4a5a256540f45a123e170e178bc9ac4..78f3263fc153079938898989822b57e5888568d6 100644 (file)
@@ -14,6 +14,7 @@ void append_todo_help(unsigned edit_todo, unsigned keep_empty,
 "s, squash <commit> = use commit, but meld into previous commit\n"
 "f, fixup <commit> = like \"squash\", but discard this commit's log message\n"
 "x, exec <command> = run command (the rest of the line) using shell\n"
+"b, break = stop here (continue rebase later with 'git rebase --continue')\n"
 "d, drop <commit> = remove commit\n"
 "l, label <label> = label current HEAD with a name\n"
 "t, reset <label> = reset HEAD to a label\n"
@@ -52,28 +53,6 @@ void append_todo_help(unsigned edit_todo, unsigned keep_empty,
        }
 }
 
-int append_todo_help_to_file(unsigned edit_todo, unsigned keep_empty)
-{
-       struct strbuf buf = STRBUF_INIT;
-       FILE *todo;
-       int ret;
-
-       todo = fopen_or_warn(rebase_path_todo(), "a");
-       if (!todo)
-               return -1;
-
-       append_todo_help(edit_todo, keep_empty, &buf);
-
-       ret = fputs(buf.buf, todo);
-       if (ret < 0)
-               error_errno(_("could not append help text to '%s'"), rebase_path_todo());
-
-       fclose(todo);
-       strbuf_release(&buf);
-
-       return ret;
-}
-
 int edit_todo_list(unsigned flags)
 {
        struct strbuf buf = STRBUF_INIT;