diff options
author | Junio C Hamano <junkio@cox.net> | 2007-05-24 21:35:29 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-24 21:35:29 -0700 |
commit | 18bece43675ea0dc9022a7868865e02808b7af7f (patch) | |
tree | 1d22ccd8b1bd5cac8e1bbc4c31c72f21b66c2cb6 /builtin-name-rev.c | |
parent | 56752391a8c0c591853b276e4fa0b45c34ced181 (diff) | |
parent | 6d9d26d82623b8189fa88ebb7b47e45f8ccbb3b1 (diff) | |
download | git-18bece43675ea0dc9022a7868865e02808b7af7f.tar.gz |
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.c | 4 |
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) { |