Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/blame.c: reduce scope of variables
author
Elia Pinto
<gitter.spiros@gmail.com>
Wed, 29 Jan 2014 13:33:15 +0000
(
05:33
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Jan 2014 18:44:05 +0000
(10:44 -0800)
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e36f3a8
)
diff --git
a/builtin/blame.c
b/builtin/blame.c
index 1407ae7eb291ab7c0d00984d18820c955703e17f..862c0a23d1abb8808479f353d860604354879eb3 100644
(file)
--- a/
builtin/blame.c
+++ b/
builtin/blame.c
@@
-1581,14
+1581,14
@@
static const char *format_time(unsigned long time, const char *tz_str,
int show_raw_time)
{
static char time_buf[128];
- const char *time_str;
- int time_len;
- int tz;
if (show_raw_time) {
snprintf(time_buf, sizeof(time_buf), "%lu %s", time, tz_str);
}
else {
+ const char *time_str;
+ int time_len;
+ int tz;
tz = atoi(tz_str);
time_str = show_date(time, tz, blame_date_mode);
time_len = strlen(time_str);