Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
rebase -i: replace reference to sha1 with oid
author
Liam Beguin
<liambeguin@gmail.com>
Tue, 5 Dec 2017 17:52:31 +0000
(12:52 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 5 Dec 2017 18:20:50 +0000
(10:20 -0800)
Since we are trying to abstract the hash function name elsewhere in the
code base, lets use OID instead of SHA-1 in the rebase--helper too.
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase--helper.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8dccc7a
)
diff --git
a/builtin/rebase--helper.c
b/builtin/rebase--helper.c
index 8ad4779d1650588084caccd1da5d5ca73376c993..c3b8e4d401f8058db46c3ad1b93db988bd373756 100644
(file)
--- a/
builtin/rebase--helper.c
+++ b/
builtin/rebase--helper.c
@@
-14,7
+14,7
@@
int cmd_rebase__helper(int argc, const char **argv, const char *prefix)
struct replay_opts opts = REPLAY_OPTS_INIT;
int keep_empty = 0;
enum {
struct replay_opts opts = REPLAY_OPTS_INIT;
int keep_empty = 0;
enum {
- CONTINUE = 1, ABORT, MAKE_SCRIPT, SHORTEN_
SHA1S, EXPAND_SHA1
S,
+ CONTINUE = 1, ABORT, MAKE_SCRIPT, SHORTEN_
OIDS, EXPAND_OID
S,
CHECK_TODO_LIST, SKIP_UNNECESSARY_PICKS, REARRANGE_SQUASH
} command = 0;
struct option options[] = {
CHECK_TODO_LIST, SKIP_UNNECESSARY_PICKS, REARRANGE_SQUASH
} command = 0;
struct option options[] = {
@@
-27,9
+27,9
@@
int cmd_rebase__helper(int argc, const char **argv, const char *prefix)
OPT_CMDMODE(0, "make-script", &command,
N_("make rebase script"), MAKE_SCRIPT),
OPT_CMDMODE(0, "shorten-ids", &command,
OPT_CMDMODE(0, "make-script", &command,
N_("make rebase script"), MAKE_SCRIPT),
OPT_CMDMODE(0, "shorten-ids", &command,
- N_("shorten
SHA-1s in the todo list"), SHORTEN_SHA1
S),
+ N_("shorten
commit ids in the todo list"), SHORTEN_OID
S),
OPT_CMDMODE(0, "expand-ids", &command,
OPT_CMDMODE(0, "expand-ids", &command,
- N_("expand
SHA-1s in the todo list"), EXPAND_SHA1
S),
+ N_("expand
commit ids in the todo list"), EXPAND_OID
S),
OPT_CMDMODE(0, "check-todo-list", &command,
N_("check the todo list"), CHECK_TODO_LIST),
OPT_CMDMODE(0, "skip-unnecessary-picks", &command,
OPT_CMDMODE(0, "check-todo-list", &command,
N_("check the todo list"), CHECK_TODO_LIST),
OPT_CMDMODE(0, "skip-unnecessary-picks", &command,
@@
-54,9
+54,9
@@
int cmd_rebase__helper(int argc, const char **argv, const char *prefix)
return !!sequencer_remove_state(&opts);
if (command == MAKE_SCRIPT && argc > 1)
return !!sequencer_make_script(keep_empty, stdout, argc, argv);
return !!sequencer_remove_state(&opts);
if (command == MAKE_SCRIPT && argc > 1)
return !!sequencer_make_script(keep_empty, stdout, argc, argv);
- if (command == SHORTEN_
SHA1
S && argc == 1)
+ if (command == SHORTEN_
OID
S && argc == 1)
return !!transform_todos(1);
return !!transform_todos(1);
- if (command == EXPAND_
SHA1
S && argc == 1)
+ if (command == EXPAND_
OID
S && argc == 1)
return !!transform_todos(0);
if (command == CHECK_TODO_LIST && argc == 1)
return !!check_todo_list();
return !!transform_todos(0);
if (command == CHECK_TODO_LIST && argc == 1)
return !!check_todo_list();