summaryrefslogtreecommitdiff
path: root/builtin/rebase--helper.c
diff options
context:
space:
mode:
authorLibravatar Liam Beguin <liambeguin@gmail.com>2017-12-05 12:52:30 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-05 10:20:50 -0800
commit8dccc7a6b2deb05783ea5d57b53548dab32d99ae (patch)
tree8d5eb9922419257411155d99841ff68c3fa898d4 /builtin/rebase--helper.c
parentrebase -i: set commit to null in exec commands (diff)
downloadtgif-8dccc7a6b2deb05783ea5d57b53548dab32d99ae.tar.xz
rebase -i: refactor transform_todo_ids
The transform_todo_ids function is a little hard to read. Lets try to make it easier by using more of the strbuf API. Also, since we'll soon be adding command abbreviations, let's rename the function so it's name reflects that change. Signed-off-by: Liam Beguin <liambeguin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rebase--helper.c')
-rw-r--r--builtin/rebase--helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/rebase--helper.c b/builtin/rebase--helper.c
index f8519363a3..8ad4779d16 100644
--- a/builtin/rebase--helper.c
+++ b/builtin/rebase--helper.c
@@ -55,9 +55,9 @@ int cmd_rebase__helper(int argc, const char **argv, const char *prefix)
if (command == MAKE_SCRIPT && argc > 1)
return !!sequencer_make_script(keep_empty, stdout, argc, argv);
if (command == SHORTEN_SHA1S && argc == 1)
- return !!transform_todo_ids(1);
+ return !!transform_todos(1);
if (command == EXPAND_SHA1S && argc == 1)
- return !!transform_todo_ids(0);
+ return !!transform_todos(0);
if (command == CHECK_TODO_LIST && argc == 1)
return !!check_todo_list();
if (command == SKIP_UNNECESSARY_PICKS && argc == 1)