projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Handle deltified object correctly in git-*-pull family.
[git.git]
/
date.c
diff --git
a/date.c
b/date.c
index
7371bc1
..
ff922fe
100644
(file)
--- a/
date.c
+++ b/
date.c
@@
-4,12
+4,11
@@
* Copyright (C) Linus Torvalds, 2005
*/
* Copyright (C) Linus Torvalds, 2005
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#include <time.h>
#include <ctype.h>
#include <time.h>
+#include "cache.h"
+
static time_t my_mktime(struct tm *tm)
{
static const int mdays[] = {
static time_t my_mktime(struct tm *tm)
{
static const int mdays[] = {
@@
-51,9
+50,9
@@
const char *show_date(unsigned long time, int tz)
int minutes;
minutes = tz < 0 ? -tz : tz;
int minutes;
minutes = tz < 0 ? -tz : tz;
- minutes = (
tz / 100)*60 + (tz
% 100);
+ minutes = (
minutes / 100)*60 + (minutes
% 100);
minutes = tz < 0 ? -minutes : minutes;
minutes = tz < 0 ? -minutes : minutes;
- t = time
-
minutes * 60;
+ t = time
+
minutes * 60;
tm = gmtime(&t);
if (!tm)
return NULL;
tm = gmtime(&t);
if (!tm)
return NULL;