Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
reset: trivial style cleanup
author
Felipe Contreras
<felipe.contreras@gmail.com>
Fri, 30 Aug 2013 21:56:48 +0000
(16:56 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 31 Aug 2013 03:59:04 +0000
(20:59 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
82a0672
)
diff --git
a/builtin/reset.c
b/builtin/reset.c
index 225e3f141e1d4debc112a2b32fee1b3d3d95fd17..7e65934a82c0212f176bb604c6f22cd5904c7198 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-323,7
+323,7
@@
int cmd_reset(int argc, const char **argv, const char *prefix)
die_if_unmerged_cache(reset_type);
if (reset_type != SOFT) {
- struct lock_file *lock = xcalloc(1, sizeof(
struct lock_file
));
+ struct lock_file *lock = xcalloc(1, sizeof(
*lock
));
int newfd = hold_locked_index(lock, 1);
if (reset_type == MIXED) {
int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;