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:
authorJunio C Hamano <junkio@cox.net>2007-05-25 08:35:29 +0400
committerJunio C Hamano <junkio@cox.net>2007-05-25 08:35:29 +0400
commit18bece43675ea0dc9022a7868865e02808b7af7f (patch)
tree1d22ccd8b1bd5cac8e1bbc4c31c72f21b66c2cb6 /builtin-name-rev.c
parent56752391a8c0c591853b276e4fa0b45c34ced181 (diff)
parent6d9d26d82623b8189fa88ebb7b47e45f8ccbb3b1 (diff)
Merge branch 'maint'
* maint: fix memory leak in parse_object when check_sha1_signature fails name-rev: tolerate clock skew in committer dates Update bash completion for git-config options Teach bash completion about recent log long options Teach bash completion about 'git remote update' Update bash completion header documentation Remove a duplicate --not option in bash completion Teach bash completion about git-shortlog Hide the plumbing diff-{files,index,tree} from bash completion Update bash completion to ignore some more plumbing commands
Diffstat (limited to 'builtin-name-rev.c')
-rw-r--r--builtin-name-rev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-name-rev.c b/builtin-name-rev.c
index a639e2feda..d3c42ed67e 100644
--- a/builtin-name-rev.c
+++ b/builtin-name-rev.c
@@ -4,6 +4,8 @@
#include "tag.h"
#include "refs.h"
+#define CUTOFF_DATE_SLOP 86400 /* one day */
+
static const char name_rev_usage[] =
"git-name-rev [--tags | --refs=<pattern>] ( --all | --stdin | committish [committish...] )\n";
@@ -216,6 +218,8 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
add_object_array((struct object *)commit, *argv, &revs);
}
+ if (cutoff)
+ cutoff = cutoff - CUTOFF_DATE_SLOP;
for_each_ref(name_ref, &data);
if (transform_stdin) {