Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
checkout_paths(): remove unneeded flag variable
author
Michael Haggerty
<mhagger@alum.mit.edu>
Thu, 7 Apr 2016 19:03:07 +0000
(15:03 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 10 Apr 2016 18:35:36 +0000
(11:35 -0700)
It is never read, so we can pass NULL to resolve_ref_unsafe().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
17377b6
)
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index efcbd8f6b5e0b7d551c88c02b6d7d3069a47944d..ea2fe1cf3fc251dcab2f2d70e737a0f8f5000a21 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-242,7
+242,6
@@
static int checkout_paths(const struct checkout_opts *opts,
struct checkout state;
static char *ps_matched;
unsigned char rev[20];
- int flag;
struct commit *head;
int errs = 0;
struct lock_file *lock_file;
@@
-375,7
+374,7
@@
static int checkout_paths(const struct checkout_opts *opts,
if (write_locked_index(&the_index, lock_file, COMMIT_LOCK))
die(_("unable to write new index file"));
- read_ref_full("HEAD", 0, rev,
&flag
);
+ read_ref_full("HEAD", 0, rev,
NULL
);
head = lookup_commit_reference_gently(rev, 1);
errs |= post_checkout_hook(head, head, 0);