Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
rebase -i: remove duplication
author
Phillip Wood
<phillip.wood@dunelm.org.uk>
Wed, 17 Apr 2019 14:30:38 +0000
(15:30 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 19 Apr 2019 08:32:10 +0000
(17:32 +0900)
path_state_dir() and merge_dir() refer to the same path so remove one of
them.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0609b74
)
diff --git
a/builtin/rebase.c
b/builtin/rebase.c
index 57a3c9caf167d48f05dfb2b8f96b1d2b24ec771a..610b67827bd35b5eb485ded13519be786928290f 100644
(file)
--- a/
builtin/rebase.c
+++ b/
builtin/rebase.c
@@
-37,7
+37,6
@@
static char const * const builtin_rebase_usage[] = {
NULL
};
NULL
};
-static GIT_PATH_FUNC(path_state_dir, "rebase-merge/")
static GIT_PATH_FUNC(path_squash_onto, "rebase-merge/squash-onto")
static GIT_PATH_FUNC(path_interactive, "rebase-merge/interactive")
static GIT_PATH_FUNC(apply_dir, "rebase-apply")
static GIT_PATH_FUNC(path_squash_onto, "rebase-merge/squash-onto")
static GIT_PATH_FUNC(path_interactive, "rebase-merge/interactive")
static GIT_PATH_FUNC(apply_dir, "rebase-apply")
@@
-182,8
+181,8
@@
static int init_basic_state(struct replay_opts *opts, const char *head_name,
{
FILE *interactive;
{
FILE *interactive;
- if (!is_directory(
path_state_dir()) && mkdir_in_gitdir(path_stat
e_dir()))
- return error_errno(_("could not create temporary %s"),
path_stat
e_dir());
+ if (!is_directory(
merge_dir()) && mkdir_in_gitdir(merg
e_dir()))
+ return error_errno(_("could not create temporary %s"),
merg
e_dir());
delete_reflog("REBASE_HEAD");
delete_reflog("REBASE_HEAD");