Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2014-01-29 17:33:15 +0400
committerJunio C Hamano <gitster@pobox.com>2014-01-31 22:44:05 +0400
commitac39b27786856c3d622d3ad2c1423ce1606ec7d4 (patch)
treefacbbdaaec4737a3cb1ca035faac34c6bfb84157 /builtin/blame.c
parente36f3a8a6fa1a1d99fb5730cd7642ecd0854b564 (diff)
builtin/blame.c: reduce scope of variables
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/blame.c')
-rw-r--r--builtin/blame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index 1407ae7eb2..862c0a23d1 100644
--- 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);