summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6010d2d)
raw | patch | inline | side by side (parent: 6010d2d)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Thu, 21 Feb 2008 15:50:42 +0000 (10:50 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 21 Feb 2008 23:34:23 +0000 (15:34 -0800) |
This path doesn't actually care where in the tree you started out,
since it must change the whole thing anyway. With the gratuitous bug
removed, the argument is unused.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
since it must change the whole thing anyway. With the gratuitous bug
removed, the argument is unused.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | patch | blob | history |
diff --git a/builtin-checkout.c b/builtin-checkout.c
index f51b77a6bcf2047718641edcfc084c40556533cf..e89b8f8ee0114deda761b66848c17be301f8e287 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
}
static int merge_working_tree(struct checkout_opts *opts,
- struct branch_info *old, struct branch_info *new,
- const char *prefix)
+ struct branch_info *old, struct branch_info *new)
{
int ret;
struct lock_file *lock_file = xcalloc(1, sizeof(struct lock_file));
adjust_to_tracking(new, opts);
}
-static int switch_branches(struct checkout_opts *opts,
- struct branch_info *new, const char *prefix)
+static int switch_branches(struct checkout_opts *opts, struct branch_info *new)
{
int ret = 0;
struct branch_info old;
opts->force = 1;
}
- ret = merge_working_tree(opts, &old, new, prefix);
+ ret = merge_working_tree(opts, &old, new);
if (ret)
return ret;
die("Cannot switch branch to a non-commit.");
}
- return switch_branches(&opts, &new, prefix);
+ return switch_branches(&opts, &new);
}