From 607a9e8aaa9b1a18f81ae67e40a5c8a5d1a92577 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 27 Aug 2009 16:39:38 -0700 Subject: [PATCH 1/3] Round-down years in "years+months" relative date view Previously, a commit from 1 year and 7 months ago would display as "2 years, 7 months ago". Signed-off-by: David Reiss Signed-off-by: Junio C Hamano --- date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date.c b/date.c index 409a17d464..f011692c2f 100644 --- a/date.c +++ b/date.c @@ -135,7 +135,7 @@ const char *show_date(unsigned long time, int tz, enum date_mode mode) } /* Give years and months for 5 years or so */ if (diff < 1825) { - unsigned long years = (diff + 183) / 365; + unsigned long years = diff / 365; unsigned long months = (diff % 365 + 15) / 30; int n; n = snprintf(timebuf, sizeof(timebuf), "%lu year%s", From 82d97da30aba767e5c8406b595274af299858357 Mon Sep 17 00:00:00 2001 From: "Wesley J. Landaker" Date: Thu, 27 Aug 2009 20:55:43 -0600 Subject: [PATCH 2/3] Documentation: git-archive: mark --format as optional in summary The --format option was made optional in 8ff21b1 (git-archive: make tar the default format, 2007-04-09), but it was not marked as optional in the summary. This trival patch just changes the summary to match the rest of the documentation. Signed-off-by: Wesley J. Landaker Signed-off-by: Junio C Hamano --- Documentation/git-archive.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt index 41cbf9c081..818ce94260 100644 --- a/Documentation/git-archive.txt +++ b/Documentation/git-archive.txt @@ -9,7 +9,7 @@ git-archive - Create an archive of files from a named tree SYNOPSIS -------- [verse] -'git archive' --format= [--list] [--prefix=/] [] +'git archive' [--format=] [--list] [--prefix=/] [] [--remote= [--exec=]] [path...] From 93197898041fcaf84d8ac84df764cca7bf86b226 Mon Sep 17 00:00:00 2001 From: Nanako Shiraishi Date: Fri, 28 Aug 2009 12:18:49 +0900 Subject: [PATCH 3/3] Fix overridable written with an extra 'e' Signed-off-by: Nanako Shiraishi Signed-off-by: Junio C Hamano --- Documentation/git-gc.txt | 2 +- gitweb/gitweb.perl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt index b292e9843a..dcac8c8e29 100644 --- a/Documentation/git-gc.txt +++ b/Documentation/git-gc.txt @@ -61,7 +61,7 @@ automatic consolidation of packs. --prune=:: Prune loose objects older than date (default is 2 weeks ago, - overrideable by the config variable `gc.pruneExpire`). This + overridable by the config variable `gc.pruneExpire`). This option is on by default. --no-prune:: diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 33ef190ceb..43fa791de0 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -376,7 +376,7 @@ sub gitweb_get_feature { @{$feature{$name}{'default'}}); if (!$override) { return @defaults; } if (!defined $sub) { - warn "feature $name is not overrideable"; + warn "feature $name is not overridable"; return @defaults; } return $sub->(@defaults);