diff options
author | Liam Beguin <liambeguin@gmail.com> | 2017-12-05 17:52:30 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-05 18:20:50 (GMT) |
commit | 8dccc7a6b2deb05783ea5d57b53548dab32d99ae (patch) | |
tree | 8d5eb9922419257411155d99841ff68c3fa898d4 /builtin | |
parent | 7dcbb3cb6d4f06ff305e5a18dba873261d3fa5d3 (diff) | |
download | git-8dccc7a6b2deb05783ea5d57b53548dab32d99ae.zip git-8dccc7a6b2deb05783ea5d57b53548dab32d99ae.tar.gz git-8dccc7a6b2deb05783ea5d57b53548dab32d99ae.tar.bz2 |
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')
-rw-r--r-- | builtin/rebase--helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/rebase--helper.c b/builtin/rebase--helper.c index f851936..8ad4779 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) |